Skip to content

Instantly share code, notes, and snippets.

@iam4x
Created Nov 19, 2018
Embed
What would you like to do?
// @flow
/* eslint no-redeclare: off */
/* eslint no-use-before-define: off */
/**
* API Mailers
*/
declare function use(module: 'App/Mailers/Base'): Class<api$BaseMailer>;
declare function use(module: 'App/Mailers/Admin'): api$AdminMailer;
declare function use(module: 'App/Mailers/Order'): api$OrderMailer;
declare function use(module: 'App/Mailers/Customer'): api$CustomerMailer;
declare function use(module: 'App/Mailers/Invoice'): api$InvoiceMailer;
/**
* API Services
*/
declare function use(module: 'App/Services/Base'): Class<api$BaseService>;
declare function use(
module: 'App/Services/AdyenNotification'
): Class<api$AdyenNotificationService>;
declare function use(module: 'App/Services/Pdf'): Class<api$PDFService>;
declare function use(
module: 'App/Services/StockItem'
): Class<api$StockItemService>;
declare function use(module: 'App/Services/Parcel'): Class<api$ParcelService>;
declare function use(
module: 'App/Services/OrderItem'
): Class<api$OrderItemService>;
declare function use(module: 'App/Services/Adyen'): Class<api$AdyenService>;
declare function use(module: 'App/Services/Order'): Class<api$OrderService>;
declare function use(module: 'App/Services/Payment'): Class<api$PaymentService>;
declare function use(
module: 'App/Services/Customer'
): Class<api$CustomerService>;
declare function use(module: 'App/Services/Slack'): Class<api$SlackService>;
declare function use(module: api$UntypedServices): any;
/**
* API Utils
*/
declare function use(module: 'App/Utils/Graph'): api$GraphUtil;
declare function use(module: 'App/Utils/Match'): api$MatchUtil<any>;
/**
* API Helpers
*/
declare function use(module: 'App/Helpers/Mail'): api$MailHelper;
declare function use(module: 'App/Helpers/CustomerMailer'): api$CustomerMailer;
declare function use(module: 'App/Helpers/Bundles'): api$BundlesHelper;
declare function use(module: 'App/Helpers/Devices'): api$DevicesHelper;
declare function use(module: 'Chronopost/Api/Tracking'): api$ChronopostTracking;
declare function use(module: api$UntypedHelpers): any;
/**
* API Models
*/
declare function use(module: 'App/Models/Payment'): Class<api$PaymentModel>;
declare function use(
module: 'App/Models/AdyenNotification'
): Class<api$AdyenNotificationModel>;
declare function use(module: 'App/Models/Customer'): Class<api$CustomerModel>;
declare function use(module: 'App/Models/Item'): Class<api$ItemModel>;
declare function use(module: 'App/Models/Order'): Class<api$OrderModel>;
declare function use(module: 'App/Models/OrderItem'): Class<api$OrderItemModel>;
declare function use(module: 'App/Models/Coupon'): Class<api$CouponModel>;
declare function use(module: 'App/Models/StockItem'): Class<api$StockItemModel>;
declare function use(module: 'App/Models/Parcel'): Class<api$ParcelModel>;
declare function use(module: 'App/Models/Stock'): Class<api$StockModel>;
declare function use(module: 'App/Models/Invoice'): Class<api$InvoiceModel>;
declare function use(module: 'App/Models/Tax'): Class<api$TaxModel>;
declare function use(module: 'App/Models/State'): Class<api$StateModel>;
declare function use(module: 'App/Models/File'): Class<api$FileModel>;
declare function use(module: 'App/Models/User'): Class<api$UserModel>;
declare function use(
module: 'App/Models/BankDetails'
): Class<api$BankDetailsModel>;
declare function use(module: 'App/Models/Country'): Class<api$CountryModel>;
declare function use(module: 'App/Models/Token'): Class<api$TokenModel>;
declare function use(module: 'App/Models/Supplier'): Class<api$SupplierModel>;
declare function use(
module: 'App/Models/CustomerVerification'
): Class<api$CustomerVerificationModel>;
declare function use(module: 'App/Models/Settings'): Class<api$SettingsModel>;
declare function use(
module: 'App/Models/StateMachines/Order'
): Class<api$StateModel>;
declare function use(
module: 'App/Models/StateMachines/StockItem'
): Class<api$StateModel>;
declare function use(
module: 'App/Models/StateMachines/CustomerVerification'
): Class<api$StateModel>;
declare function use(
module: 'App/Models/StateMachines/OrderItem'
): Class<api$StateModel>;
/**
* API Scripts
*/
declare function use(module: api$ScriptsUntyped): any;
/**
* API Views
*/
declare function use(module: 'App/Views/Pdf/Deposit'): api$PDFDeposit;
declare function use(module: 'App/Views/Pdf/Sepa'): api$PDFSepa;
declare function use(module: 'App/Views/Pdf/Invoice'): Class<api$PDFInvoice>;
declare function use(module: api$UntypedViews): any;
/**
* Adonis Modules
*/
declare function use(module: 'Server' | 'Adonis/Src/Server'): adonis$Server;
declare function use(module: 'Mail'): adonis$Mail;
declare function use(module: 'Validator'): adonis$Validator;
declare function use(module: 'Config'): adonis$Config;
declare function use(module: 'Hash'): adonis$Hash;
declare function use(module: 'Drive'): adonis$Drive;
declare function use(module: 'Env'): adonis$Env;
declare function use(module: 'Encryption'): adonis$Encryption;
declare function use(module: 'Logger'): { [method: string]: Function };
declare function use(module: 'Model'): Class<adonis$Model<*>>;
declare function use(module: 'Algolia'): adonis$Algolia;
declare function use(module: 'Helpers'): adonis$Helpers;
declare function use(module: 'Adonis/Addons/Scheduler'): adonis$Scheduler;
declare function use(
module: 'Database' | 'App/Helpers/Database'
): adonis$Database;
declare function use(
module: 'BaseExceptionHandler'
): Class<adonis$BaseExceptionHandler>;
declare function use(module: adonis$UntypedModules): any;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment