@wenex/sdk 0.8.4 → 0.8.6

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.
Files changed (132) hide show
  1. package/common/enums/career/business-type.enum.d.ts +8 -0
  2. package/common/enums/career/business-type.enum.js +13 -0
  3. package/common/enums/career/business-type.enum.js.map +1 -0
  4. package/common/enums/career/employee-type.enum.d.ts +6 -0
  5. package/common/enums/career/employee-type.enum.js +11 -0
  6. package/common/enums/career/employee-type.enum.js.map +1 -0
  7. package/common/enums/career/index.d.ts +6 -0
  8. package/common/enums/career/index.js +23 -0
  9. package/common/enums/career/index.js.map +1 -0
  10. package/common/enums/career/products/feature-type.enum.d.ts +7 -0
  11. package/common/enums/career/products/feature-type.enum.js +12 -0
  12. package/common/enums/career/products/feature-type.enum.js.map +1 -0
  13. package/common/enums/career/products/index.d.ts +1 -0
  14. package/common/enums/career/products/index.js +18 -0
  15. package/common/enums/career/products/index.js.map +1 -0
  16. package/common/enums/career/stock-type.enum.d.ts +5 -0
  17. package/common/enums/career/stock-type.enum.js +10 -0
  18. package/common/enums/career/stock-type.enum.js.map +1 -0
  19. package/common/enums/career/stores/fork.enum.d.ts +4 -0
  20. package/common/enums/career/stores/fork.enum.js +9 -0
  21. package/common/enums/career/stores/fork.enum.js.map +1 -0
  22. package/common/enums/career/stores/index.d.ts +2 -0
  23. package/common/enums/career/stores/index.js +19 -0
  24. package/common/enums/career/stores/index.js.map +1 -0
  25. package/common/enums/career/stores/type.enum.d.ts +4 -0
  26. package/common/enums/career/stores/type.enum.js +9 -0
  27. package/common/enums/career/stores/type.enum.js.map +1 -0
  28. package/common/enums/career/support-type.enum.d.ts +4 -0
  29. package/common/enums/career/support-type.enum.js +9 -0
  30. package/common/enums/career/support-type.enum.js.map +1 -0
  31. package/common/enums/financial/accounts/index.d.ts +0 -2
  32. package/common/enums/financial/accounts/index.js +0 -2
  33. package/common/enums/financial/accounts/index.js.map +1 -1
  34. package/common/enums/financial/index.d.ts +0 -1
  35. package/common/enums/financial/index.js +0 -1
  36. package/common/enums/financial/index.js.map +1 -1
  37. package/common/enums/index.d.ts +1 -0
  38. package/common/enums/index.js +1 -0
  39. package/common/enums/index.js.map +1 -1
  40. package/common/interfaces/career/business.interface.d.ts +22 -0
  41. package/common/interfaces/career/business.interface.js +3 -0
  42. package/common/interfaces/career/business.interface.js.map +1 -0
  43. package/common/interfaces/career/customer/address.interface.d.ts +6 -0
  44. package/common/interfaces/career/customer/address.interface.js +3 -0
  45. package/common/interfaces/career/customer/address.interface.js.map +1 -0
  46. package/common/interfaces/career/customer/card.interface.d.ts +7 -0
  47. package/common/interfaces/career/customer/card.interface.js +3 -0
  48. package/common/interfaces/career/customer/card.interface.js.map +1 -0
  49. package/common/interfaces/career/customer/cart/cart-item-interface.d.ts +7 -0
  50. package/common/interfaces/career/customer/cart/cart-item-interface.js +3 -0
  51. package/common/interfaces/career/customer/cart/cart-item-interface.js.map +1 -0
  52. package/common/interfaces/career/customer/cart/cart.interface.d.ts +10 -0
  53. package/common/interfaces/career/customer/cart/cart.interface.js +3 -0
  54. package/common/interfaces/career/customer/cart/cart.interface.js.map +1 -0
  55. package/common/interfaces/career/customer/cart/index.d.ts +2 -0
  56. package/common/interfaces/career/customer/cart/index.js +19 -0
  57. package/common/interfaces/career/customer/cart/index.js.map +1 -0
  58. package/common/interfaces/career/customer/customer.interface.d.ts +15 -0
  59. package/common/interfaces/career/customer/customer.interface.js +3 -0
  60. package/common/interfaces/career/customer/customer.interface.js.map +1 -0
  61. package/common/interfaces/career/customer/index.d.ts +4 -0
  62. package/common/interfaces/career/customer/index.js +21 -0
  63. package/common/interfaces/career/customer/index.js.map +1 -0
  64. package/common/interfaces/career/employee/document.interface.d.ts +6 -0
  65. package/common/interfaces/career/employee/document.interface.js +3 -0
  66. package/common/interfaces/career/employee/document.interface.js.map +1 -0
  67. package/common/interfaces/career/employee/employee.interface.d.ts +24 -0
  68. package/common/interfaces/career/employee/employee.interface.js +3 -0
  69. package/common/interfaces/career/employee/employee.interface.js.map +1 -0
  70. package/common/interfaces/career/employee/index.d.ts +2 -0
  71. package/common/interfaces/career/employee/index.js +19 -0
  72. package/common/interfaces/career/employee/index.js.map +1 -0
  73. package/common/interfaces/career/index.d.ts +7 -0
  74. package/common/interfaces/career/index.js +24 -0
  75. package/common/interfaces/career/index.js.map +1 -0
  76. package/common/interfaces/career/product/feature.interface.d.ts +8 -0
  77. package/common/interfaces/career/product/feature.interface.js +3 -0
  78. package/common/interfaces/career/product/feature.interface.js.map +1 -0
  79. package/common/interfaces/career/product/index.d.ts +2 -0
  80. package/common/interfaces/career/product/index.js +19 -0
  81. package/common/interfaces/career/product/index.js.map +1 -0
  82. package/common/interfaces/career/product/product.interface.d.ts +18 -0
  83. package/common/interfaces/career/product/product.interface.js +3 -0
  84. package/common/interfaces/career/product/product.interface.js.map +1 -0
  85. package/common/interfaces/career/stock.interface.d.ts +26 -0
  86. package/common/interfaces/career/stock.interface.js +3 -0
  87. package/common/interfaces/career/stock.interface.js.map +1 -0
  88. package/common/interfaces/career/store.interface.d.ts +21 -0
  89. package/common/interfaces/career/store.interface.js +3 -0
  90. package/common/interfaces/career/store.interface.js.map +1 -0
  91. package/common/interfaces/career/support.interface.d.ts +20 -0
  92. package/common/interfaces/career/support.interface.js +3 -0
  93. package/common/interfaces/career/support.interface.js.map +1 -0
  94. package/common/interfaces/financial/account.interface.d.ts +3 -5
  95. package/common/interfaces/financial/wallet.interface.d.ts +1 -3
  96. package/common/interfaces/index.d.ts +1 -0
  97. package/common/interfaces/index.js +1 -0
  98. package/common/interfaces/index.js.map +1 -1
  99. package/index.d.ts +3 -1
  100. package/index.js +4 -0
  101. package/index.js.map +1 -1
  102. package/package.json +1 -1
  103. package/services/career/businesses.service.d.ts +7 -0
  104. package/services/career/businesses.service.js +12 -0
  105. package/services/career/businesses.service.js.map +1 -0
  106. package/services/career/customers.service.d.ts +7 -0
  107. package/services/career/customers.service.js +12 -0
  108. package/services/career/customers.service.js.map +1 -0
  109. package/services/career/employees.service.d.ts +7 -0
  110. package/services/career/employees.service.js +12 -0
  111. package/services/career/employees.service.js.map +1 -0
  112. package/services/career/index.d.ts +33 -0
  113. package/services/career/index.js +66 -0
  114. package/services/career/index.js.map +1 -0
  115. package/services/career/products.service.d.ts +7 -0
  116. package/services/career/products.service.js +12 -0
  117. package/services/career/products.service.js.map +1 -0
  118. package/services/career/stocks.service.d.ts +7 -0
  119. package/services/career/stocks.service.js +12 -0
  120. package/services/career/stocks.service.js.map +1 -0
  121. package/services/career/stores.service.d.ts +7 -0
  122. package/services/career/stores.service.js +12 -0
  123. package/services/career/stores.service.js.map +1 -0
  124. package/services/career/supports.service.d.ts +7 -0
  125. package/services/career/supports.service.js +12 -0
  126. package/services/career/supports.service.js.map +1 -0
  127. package/services/context/index.d.ts +1 -0
  128. package/services/context/index.js +1 -0
  129. package/services/context/index.js.map +1 -1
  130. package/services/index.d.ts +1 -0
  131. package/services/index.js +1 -0
  132. package/services/index.js.map +1 -1
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./product"), exports);
18
+ __exportStar(require("./customer"), exports);
19
+ __exportStar(require("./employee"), exports);
20
+ __exportStar(require("./store.interface"), exports);
21
+ __exportStar(require("./stock.interface"), exports);
22
+ __exportStar(require("./support.interface"), exports);
23
+ __exportStar(require("./business.interface"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/career/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAE1B,6CAA2B;AAC3B,6CAA2B;AAE3B,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC"}
@@ -0,0 +1,8 @@
1
+ import { ProductFeatureType } from '../../../enums';
2
+ export interface ProductFeature {
3
+ id?: string;
4
+ type: ProductFeatureType;
5
+ title: string;
6
+ value: boolean | number | string;
7
+ }
8
+ export type ProductFeatureDto = ProductFeature;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=feature.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/career/product/feature.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './feature.interface';
2
+ export * from './product.interface';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./feature.interface"), exports);
18
+ __exportStar(require("./product.interface"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/career/product/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,sDAAoC"}
@@ -0,0 +1,18 @@
1
+ import type { Document } from 'mongoose';
2
+ import { Core, Dto } from '../../common';
3
+ import { ProductFeature, ProductFeatureDto } from './feature.interface';
4
+ export interface Product extends Core {
5
+ name: string;
6
+ alias?: string;
7
+ rate?: number;
8
+ votes?: number;
9
+ rating?: number;
10
+ brand?: string;
11
+ images?: string[];
12
+ category?: string[];
13
+ features?: ProductFeature[];
14
+ }
15
+ export type ProductDoc = Product & Document;
16
+ export type ProductDto = Dto<Omit<Product, 'features'>> & {
17
+ features?: ProductFeatureDto[];
18
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=product.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/career/product/product.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import type { Document } from 'mongoose';
2
+ import { Status, StockType } from '../../enums';
3
+ import { Core, Dto, MakeOptional } from '../common';
4
+ export interface Stock extends Core {
5
+ name?: string;
6
+ type: StockType;
7
+ status: Status;
8
+ product: string;
9
+ features?: string[];
10
+ store?: string;
11
+ manager?: string;
12
+ business: string;
13
+ capacity?: number;
14
+ inventory: number;
15
+ place?: string;
16
+ position?: string;
17
+ location?: string;
18
+ threshold?: number;
19
+ coin?: string;
20
+ price?: number;
21
+ profit?: number;
22
+ discount?: number;
23
+ measurement?: string;
24
+ }
25
+ export type StockDoc = Stock & Document;
26
+ export type StockDto = Dto<MakeOptional<Stock, 'type' | 'status'>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=stock.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stock.interface.js","sourceRoot":"","sources":["../../../src/common/interfaces/career/stock.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import type { Document } from 'mongoose';
2
+ import { Core, Dto, MakeOptional } from '../common';
3
+ import { State, Status, StoreType, StoreFork } from '../../enums';
4
+ export interface Store extends Core {
5
+ name?: string;
6
+ type: StoreType;
7
+ fork: StoreFork;
8
+ state?: State;
9
+ status: Status;
10
+ rate?: number;
11
+ votes?: number;
12
+ rating?: number;
13
+ parent?: string;
14
+ manager: string;
15
+ business: string;
16
+ phone?: string;
17
+ address?: string;
18
+ location?: string;
19
+ }
20
+ export type StoreDoc = Store & Document;
21
+ export type StoreDto = Dto<MakeOptional<Store, 'type' | 'fork' | 'status'>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=store.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.interface.js","sourceRoot":"","sources":["../../../src/common/interfaces/career/store.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import type { Document } from 'mongoose';
2
+ import { Core, Dto } from '../common';
3
+ import { SupportType } from '../../enums';
4
+ export interface Support extends Core {
5
+ name: string;
6
+ type: SupportType;
7
+ business: string;
8
+ duration: number;
9
+ category?: string[];
10
+ rate?: number;
11
+ votes?: number;
12
+ rating?: number;
13
+ images?: string[];
14
+ coin?: string;
15
+ price?: number;
16
+ profit?: number;
17
+ discount?: number;
18
+ }
19
+ export type SupportDoc = Support & Document;
20
+ export type SupportDto = Dto<Support>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=support.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"support.interface.js","sourceRoot":"","sources":["../../../src/common/interfaces/career/support.interface.ts"],"names":[],"mappings":""}
@@ -1,12 +1,10 @@
1
1
  import type { Document } from 'mongoose';
2
- import { AccountBroker, AccountOwnership, AccountProvider, AccountType } from '../../enums';
2
+ import { AccountOwnership, AccountType } from '../../enums';
3
3
  import { Core, Dto, MakeOptional, Properties } from '../common';
4
4
  export interface Account<Props extends Properties = Properties> extends Core<Props> {
5
5
  type: AccountType;
6
- broker: AccountBroker;
7
- provider: AccountProvider;
8
6
  ownership: AccountOwnership;
9
- members: string[];
7
+ members?: string[];
10
8
  }
11
9
  export type AccountDoc = Account & Document;
12
- export type AccountDto = Dto<MakeOptional<Account, 'broker' | 'members' | 'provider'>>;
10
+ export type AccountDto = Dto<MakeOptional<Account, 'type' | 'ownership'>>;
@@ -1,5 +1,4 @@
1
1
  import type { Document } from 'mongoose';
2
- import { WalletProvider } from '../../enums';
3
2
  import { Core, Dto, MakeOptional, Properties } from '../common';
4
3
  export interface Wallet<Props extends Properties = Properties> extends Core<Props> {
5
4
  coin: string;
@@ -8,9 +7,8 @@ export interface Wallet<Props extends Properties = Properties> extends Core<Prop
8
7
  blocked?: number;
9
8
  internal?: number;
10
9
  external?: number;
11
- provider: WalletProvider;
12
10
  address?: string;
13
11
  private?: string;
14
12
  }
15
13
  export type WalletDoc = Wallet & Document;
16
- export type WalletDto = Dto<MakeOptional<Wallet, 'provider'>>;
14
+ export type WalletDto = Dto<MakeOptional<Wallet, 'amount'>>;
@@ -1,6 +1,7 @@
1
1
  export * from './common';
2
2
  export * from './auth';
3
3
  export * from './touch';
4
+ export * from './career';
4
5
  export * from './domain';
5
6
  export * from './context';
6
7
  export * from './special';
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./common"), exports);
18
18
  __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./touch"), exports);
20
+ __exportStar(require("./career"), exports);
20
21
  __exportStar(require("./domain"), exports);
21
22
  __exportStar(require("./context"), exports);
22
23
  __exportStar(require("./special"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AAEzB,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AAEzB,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,8CAA4B"}
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { AxiosInstance } from 'axios';
2
- import { AuthClient, ContextClient, DomainClient, IdentityClient, SpecialClient, TouchClient, FinancialClient, LogisticClient } from './services';
2
+ import { AuthClient, CareerClient, ContextClient, DomainClient, IdentityClient, SpecialClient, TouchClient, FinancialClient, LogisticClient } from './services';
3
3
  import { GraphqlService } from './common/classes';
4
4
  export * from './services';
5
5
  export declare class PlatformClient {
@@ -7,6 +7,7 @@ export declare class PlatformClient {
7
7
  protected $graphql?: GraphqlService;
8
8
  protected $auth?: AuthClient;
9
9
  protected $touch?: TouchClient;
10
+ protected $career?: CareerClient;
10
11
  protected $domain?: DomainClient;
11
12
  protected $context?: ContextClient;
12
13
  protected $special?: SpecialClient;
@@ -17,6 +18,7 @@ export declare class PlatformClient {
17
18
  get graphql(): GraphqlService;
18
19
  get auth(): AuthClient;
19
20
  get touch(): TouchClient;
21
+ get career(): CareerClient;
20
22
  get domain(): DomainClient;
21
23
  get context(): ContextClient;
22
24
  get special(): SpecialClient;
package/index.js CHANGED
@@ -34,6 +34,10 @@ class PlatformClient {
34
34
  var _a;
35
35
  return (this.$touch = (_a = this.$touch) !== null && _a !== void 0 ? _a : new services_1.TouchClient(this.axios));
36
36
  }
37
+ get career() {
38
+ var _a;
39
+ return (this.$career = (_a = this.$career) !== null && _a !== void 0 ? _a : new services_1.CareerClient(this.axios));
40
+ }
37
41
  get domain() {
38
42
  var _a;
39
43
  return (this.$domain = (_a = this.$domain) !== null && _a !== void 0 ? _a : new services_1.DomainClient(this.axios));
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,yCASoB;AACpB,8CAAkD;AAElD,6CAA2B;AAE3B,MAAa,cAAc;IAYzB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,OAAO;;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,IAAI,wBAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3E,CAAC;IAED,IAAI,IAAI;;QACN,OAAO,CAAC,IAAI,CAAC,KAAK,GAAG,MAAA,IAAI,CAAC,KAAK,mCAAI,IAAI,qBAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,KAAK;;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,IAAI,sBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;IAED,IAAI,MAAM;;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,GAAG,MAAA,IAAI,CAAC,OAAO,mCAAI,IAAI,uBAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,OAAO;;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ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CAAI,IAAI,0BAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC;CACF;AAtDD,wCAsDC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -0,0 +1,7 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { RestfulService } from '../../common/classes';
3
+ import { Business, BusinessDto } from '../../common/interfaces';
4
+ export declare class BusinessesService extends RestfulService<Business, BusinessDto> {
5
+ protected axios: AxiosInstance;
6
+ constructor(axios: AxiosInstance);
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BusinessesService = void 0;
4
+ const classes_1 = require("../../common/classes");
5
+ class BusinessesService extends classes_1.RestfulService {
6
+ constructor(axios) {
7
+ super('businesses', axios);
8
+ this.axios = axios;
9
+ }
10
+ }
11
+ exports.BusinessesService = BusinessesService;
12
+ //# sourceMappingURL=businesses.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"businesses.service.js","sourceRoot":"","sources":["../../src/services/career/businesses.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,iBAAkB,SAAQ,wBAAqC;IAC1E,YAAsB,KAAoB;QACxC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;QADP,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,8CAIC"}
@@ -0,0 +1,7 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { RestfulService } from '../../common/classes';
3
+ import { Customer, CustomerDto } from '../../common/interfaces';
4
+ export declare class CustomersService extends RestfulService<Customer, CustomerDto> {
5
+ protected axios: AxiosInstance;
6
+ constructor(axios: AxiosInstance);
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomersService = void 0;
4
+ const classes_1 = require("../../common/classes");
5
+ class CustomersService extends classes_1.RestfulService {
6
+ constructor(axios) {
7
+ super('customers', axios);
8
+ this.axios = axios;
9
+ }
10
+ }
11
+ exports.CustomersService = CustomersService;
12
+ //# sourceMappingURL=customers.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.service.js","sourceRoot":"","sources":["../../src/services/career/customers.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,gBAAiB,SAAQ,wBAAqC;IACzE,YAAsB,KAAoB;QACxC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QADN,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,4CAIC"}
@@ -0,0 +1,7 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { RestfulService } from '../../common/classes';
3
+ import { Employee, EmployeeDto } from '../../common/interfaces';
4
+ export declare class EmployeesService extends RestfulService<Employee, EmployeeDto> {
5
+ protected axios: AxiosInstance;
6
+ constructor(axios: AxiosInstance);
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmployeesService = void 0;
4
+ const classes_1 = require("../../common/classes");
5
+ class EmployeesService extends classes_1.RestfulService {
6
+ constructor(axios) {
7
+ super('employees', axios);
8
+ this.axios = axios;
9
+ }
10
+ }
11
+ exports.EmployeesService = EmployeesService;
12
+ //# sourceMappingURL=employees.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"employees.service.js","sourceRoot":"","sources":["../../src/services/career/employees.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,gBAAiB,SAAQ,wBAAqC;IACzE,YAAsB,KAAoB;QACxC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QADN,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,4CAIC"}
@@ -0,0 +1,33 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { StoresService } from './stores.service';
3
+ import { StocksService } from './stocks.service';
4
+ import { ProductsService } from './products.service';
5
+ import { SupportsService } from './supports.service';
6
+ import { CustomersService } from './customers.service';
7
+ import { EmployeesService } from './employees.service';
8
+ import { BusinessesService } from './businesses.service';
9
+ export * from './stores.service';
10
+ export * from './stocks.service';
11
+ export * from './products.service';
12
+ export * from './supports.service';
13
+ export * from './customers.service';
14
+ export * from './employees.service';
15
+ export * from './businesses.service';
16
+ export declare class CareerClient {
17
+ readonly axios: AxiosInstance;
18
+ protected $stores?: StoresService;
19
+ protected $stocks?: StocksService;
20
+ protected $products?: ProductsService;
21
+ protected $supports?: SupportsService;
22
+ protected $customers?: CustomersService;
23
+ protected $employees?: EmployeesService;
24
+ protected $businesses?: BusinessesService;
25
+ constructor(axios: AxiosInstance);
26
+ get stores(): StoresService;
27
+ get stocks(): StocksService;
28
+ get products(): ProductsService;
29
+ get supports(): SupportsService;
30
+ get customers(): CustomersService;
31
+ get employees(): EmployeesService;
32
+ get businesses(): BusinessesService;
33
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.CareerClient = void 0;
18
+ const stores_service_1 = require("./stores.service");
19
+ const stocks_service_1 = require("./stocks.service");
20
+ const products_service_1 = require("./products.service");
21
+ const supports_service_1 = require("./supports.service");
22
+ const customers_service_1 = require("./customers.service");
23
+ const employees_service_1 = require("./employees.service");
24
+ const businesses_service_1 = require("./businesses.service");
25
+ __exportStar(require("./stores.service"), exports);
26
+ __exportStar(require("./stocks.service"), exports);
27
+ __exportStar(require("./products.service"), exports);
28
+ __exportStar(require("./supports.service"), exports);
29
+ __exportStar(require("./customers.service"), exports);
30
+ __exportStar(require("./employees.service"), exports);
31
+ __exportStar(require("./businesses.service"), exports);
32
+ class CareerClient {
33
+ constructor(axios) {
34
+ this.axios = axios;
35
+ }
36
+ get stores() {
37
+ var _a;
38
+ return (this.$stores = (_a = this.$stores) !== null && _a !== void 0 ? _a : new stores_service_1.StoresService(this.axios));
39
+ }
40
+ get stocks() {
41
+ var _a;
42
+ return (this.$stocks = (_a = this.$stocks) !== null && _a !== void 0 ? _a : new stocks_service_1.StocksService(this.axios));
43
+ }
44
+ get products() {
45
+ var _a;
46
+ return (this.$products = (_a = this.$products) !== null && _a !== void 0 ? _a : new products_service_1.ProductsService(this.axios));
47
+ }
48
+ get supports() {
49
+ var _a;
50
+ return (this.$supports = (_a = this.$supports) !== null && _a !== void 0 ? _a : new supports_service_1.SupportsService(this.axios));
51
+ }
52
+ get customers() {
53
+ var _a;
54
+ return (this.$customers = (_a = this.$customers) !== null && _a !== void 0 ? _a : new customers_service_1.CustomersService(this.axios));
55
+ }
56
+ get employees() {
57
+ var _a;
58
+ return (this.$employees = (_a = this.$employees) !== null && _a !== void 0 ? _a : new employees_service_1.EmployeesService(this.axios));
59
+ }
60
+ get businesses() {
61
+ var _a;
62
+ return (this.$businesses = (_a = this.$businesses) !== null && _a !== void 0 ? _a : new businesses_service_1.BusinessesService(this.axios));
63
+ }
64
+ }
65
+ exports.CareerClient = CareerClient;
66
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceR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AAI,oCAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACjF,CAAC;IAED,IAAI,UAAU;;QACZ,OAAO,CAAC,IAAI,CAAC,WAAW,GAAG,MAAA,IAAI,CAAC,WAAW,mCAAI,IAAI,sCAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACpF,CAAC;CACF;AAtCD,oCAsCC"}
@@ -0,0 +1,7 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { RestfulService } from '../../common/classes';
3
+ import { Product, ProductDto } from '../../common/interfaces';
4
+ export declare class ProductsService extends RestfulService<Product, ProductDto> {
5
+ protected axios: AxiosInstance;
6
+ constructor(axios: AxiosInstance);
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductsService = void 0;
4
+ const classes_1 = require("../../common/classes");
5
+ class ProductsService extends classes_1.RestfulService {
6
+ constructor(axios) {
7
+ super('products', axios);
8
+ this.axios = axios;
9
+ }
10
+ }
11
+ exports.ProductsService = ProductsService;
12
+ //# sourceMappingURL=products.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.service.js","sourceRoot":"","sources":["../../src/services/career/products.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,eAAgB,SAAQ,wBAAmC;IACtE,YAAsB,KAAoB;QACxC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QADL,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,0CAIC"}
@@ -0,0 +1,7 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { RestfulService } from '../../common/classes';
3
+ import { Stock, StockDto } from '../../common/interfaces';
4
+ export declare class StocksService extends RestfulService<Stock, StockDto> {
5
+ protected axios: AxiosInstance;
6
+ constructor(axios: AxiosInstance);
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StocksService = void 0;
4
+ const classes_1 = require("../../common/classes");
5
+ class StocksService extends classes_1.RestfulService {
6
+ constructor(axios) {
7
+ super('stocks', axios);
8
+ this.axios = axios;
9
+ }
10
+ }
11
+ exports.StocksService = StocksService;
12
+ //# sourceMappingURL=stocks.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stocks.service.js","sourceRoot":"","sources":["../../src/services/career/stocks.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,aAAc,SAAQ,wBAA+B;IAChE,YAAsB,KAAoB;QACxC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QADH,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,sCAIC"}
@@ -0,0 +1,7 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { RestfulService } from '../../common/classes';
3
+ import { Store, StoreDto } from '../../common/interfaces';
4
+ export declare class StoresService extends RestfulService<Store, StoreDto> {
5
+ protected axios: AxiosInstance;
6
+ constructor(axios: AxiosInstance);
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StoresService = void 0;
4
+ const classes_1 = require("../../common/classes");
5
+ class StoresService extends classes_1.RestfulService {
6
+ constructor(axios) {
7
+ super('stores', axios);
8
+ this.axios = axios;
9
+ }
10
+ }
11
+ exports.StoresService = StoresService;
12
+ //# sourceMappingURL=stores.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stores.service.js","sourceRoot":"","sources":["../../src/services/career/stores.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,aAAc,SAAQ,wBAA+B;IAChE,YAAsB,KAAoB;QACxC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QADH,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,sCAIC"}
@@ -0,0 +1,7 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { RestfulService } from '../../common/classes';
3
+ import { Support, SupportDto } from '../../common/interfaces';
4
+ export declare class SupportsService extends RestfulService<Support, SupportDto> {
5
+ protected axios: AxiosInstance;
6
+ constructor(axios: AxiosInstance);
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SupportsService = void 0;
4
+ const classes_1 = require("../../common/classes");
5
+ class SupportsService extends classes_1.RestfulService {
6
+ constructor(axios) {
7
+ super('supports', axios);
8
+ this.axios = axios;
9
+ }
10
+ }
11
+ exports.SupportsService = SupportsService;
12
+ //# sourceMappingURL=supports.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supports.service.js","sourceRoot":"","sources":["../../src/services/career/supports.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,eAAgB,SAAQ,wBAAmC;IACtE,YAAsB,KAAoB;QACxC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QADL,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,0CAIC"}
@@ -2,6 +2,7 @@ import type { AxiosInstance } from 'axios';
2
2
  import { ConfigsService } from './configs.service';
3
3
  import { SettingsService } from './settings.service';
4
4
  export * from './configs.service';
5
+ export * from './settings.service';
5
6
  export declare class ContextClient {
6
7
  readonly axios: AxiosInstance;
7
8
  protected $configs?: ConfigsService;
@@ -18,6 +18,7 @@ exports.ContextClient = void 0;
18
18
  const configs_service_1 = require("./configs.service");
19
19
  const settings_service_1 = require("./settings.service");
20
20
  __exportStar(require("./configs.service"), exports);
21
+ __exportStar(require("./settings.service"), exports);
21
22
  class ContextClient {
22
23
  constructor(axios) {
23
24
  this.axios = axios;