@onylab/common-api 2.0.10 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,3 @@
1
- declare module "api/mockup/ApiMockup" {
2
- export class ApiMockup {
3
- static isDone(): boolean;
4
- static pending(): string;
5
- static reset(): void;
6
- }
7
- }
8
1
  declare module "api/hubrise/model/order/HubriseOrderStatus" {
9
2
  export enum HubriseOrderStatus {
10
3
  new = "new",
@@ -155,24 +148,6 @@ declare module "api/hubrise/model/order/HubriseOrderContract" {
155
148
  created_by?: string;
156
149
  }
157
150
  }
158
- declare module "api/hubrise/mockup/HubriseApiMockup" {
159
- import { ApiMockup } from "api/mockup/ApiMockup";
160
- export class HubriseApiMockup extends ApiMockup {
161
- static readonly BASE_URL: string;
162
- static getUser(times?: number): void;
163
- static getLocations(times?: number): void;
164
- static createCustomer(times?: number): void;
165
- static getCustomer(times?: number): void;
166
- static getCustomers(times?: number): void;
167
- static getCustomerLists(times?: number): void;
168
- static createOrder(times?: number): void;
169
- static getOrder(times?: number, generateRandomId?: boolean): void;
170
- static setOrderStatus(times?: number): void;
171
- static getCatalog(times?: number): void;
172
- static getCatalogs(times?: number): void;
173
- static createWebhook(times?: number): void;
174
- }
175
- }
176
151
  declare module "api/hubrise/model/menu/HubriseMenuCategoryContract" {
177
152
  export interface HubriseMenuCategoryContract {
178
153
  ref: string;
@@ -1212,10 +1187,7 @@ declare module "api/hubrise/model/menu/HubriseMenuImageContract" {
1212
1187
  seconds_before_removal: number;
1213
1188
  }
1214
1189
  }
1215
- declare module "api/index" {
1216
- export * from "api/hubrise/mockup/HubriseApiMockup";
1217
- export * from "api/hubrise/service/HubriseApiContract";
1218
- export * from "api/hubrise/service/HubriseApi";
1190
+ declare module "api/web" {
1219
1191
  export * from "api/hubrise/model/account/HubriseAccountContract";
1220
1192
  export * from "api/hubrise/model/account/HubriseAuthContract";
1221
1193
  export * from "api/hubrise/model/account/HubriseAuthResource";
@@ -1256,6 +1228,11 @@ declare module "api/index" {
1256
1228
  export * from "api/hubrise/model/order/HubriseOrderStatus";
1257
1229
  export * from "api/hubrise/model/user/HubriseUserContract";
1258
1230
  }
1231
+ declare module "api/index" {
1232
+ export * from "api/hubrise/service/HubriseApiContract";
1233
+ export * from "api/hubrise/service/HubriseApi";
1234
+ export * from "api/web";
1235
+ }
1259
1236
  declare module "constant/Path" {
1260
1237
  export class Path {
1261
1238
  private static BASE_PATH;
@@ -1434,6 +1411,35 @@ declare module "http/index" {
1434
1411
  export * from "http/ServerContract";
1435
1412
  export * from "http/HandlerController";
1436
1413
  }
1414
+ declare module "mockup/ApiMockup" {
1415
+ export class ApiMockup {
1416
+ static isDone(): boolean;
1417
+ static pending(): string;
1418
+ static reset(): void;
1419
+ }
1420
+ }
1421
+ declare module "mockup/HubriseApiMockup" {
1422
+ import { ApiMockup } from "mockup/ApiMockup";
1423
+ export class HubriseApiMockup extends ApiMockup {
1424
+ static readonly BASE_URL: string;
1425
+ static getUser(times?: number): void;
1426
+ static getLocations(times?: number): void;
1427
+ static createCustomer(times?: number): void;
1428
+ static getCustomer(times?: number): void;
1429
+ static getCustomers(times?: number): void;
1430
+ static getCustomerLists(times?: number): void;
1431
+ static createOrder(times?: number): void;
1432
+ static getOrder(times?: number, generateRandomId?: boolean): void;
1433
+ static setOrderStatus(times?: number): void;
1434
+ static getCatalog(times?: number): void;
1435
+ static getCatalogs(times?: number): void;
1436
+ static createWebhook(times?: number): void;
1437
+ }
1438
+ }
1439
+ declare module "mockup/index" {
1440
+ export * from "mockup/ApiMockup";
1441
+ export * from "mockup/HubriseApiMockup";
1442
+ }
1437
1443
  declare module "service/sender/SmsSenderServiceContract" {
1438
1444
  export interface SmsSenderServiceContract {
1439
1445
  send(senderName: string, message: string, phones: string[], isCommercial?: boolean, sendAt?: string): Promise<void>;
@@ -1975,11 +1981,19 @@ declare module "@onylab/common-api" {
1975
1981
  import * as Constant from "constant/index";
1976
1982
  import * as Exception from "exception/index";
1977
1983
  import * as Http from "http/index";
1984
+ import * as Mockup from "mockup/index";
1978
1985
  import * as Service from "service/index";
1979
1986
  import * as Template from "templating/index";
1980
1987
  import * as Tool from "tool/index";
1981
1988
  import * as Util from "util/index";
1982
- export { Api, Constant, Exception, Http, Service, Template, Tool, Util };
1989
+ export { Api, Constant, Exception, Http, Mockup, Service, Template, Tool, Util };
1990
+ }
1991
+ /// <amd-module name="@onylab/common-api" />
1992
+ declare module "@onylab/common-api" {
1993
+ import * as Api from "api/web";
1994
+ import * as Exception from "exception/index";
1995
+ import * as Util from "util/index";
1996
+ export { Api, Exception, Util };
1983
1997
  }
1984
1998
  declare module "exception/ForbiddenException" {
1985
1999
  import { MainException } from "exception/MainException";