@longvansoftware/service-js-client 1.0.2

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 (84) hide show
  1. package/README.md +93 -0
  2. package/dist/config/config.d.ts +26 -0
  3. package/dist/config/config.js +29 -0
  4. package/dist/src/graphql/auth/mutations.d.ts +7 -0
  5. package/dist/src/graphql/auth/mutations.js +99 -0
  6. package/dist/src/graphql/auth/queries.d.ts +1 -0
  7. package/dist/src/graphql/auth/queries.js +25 -0
  8. package/dist/src/graphql/cloud/mutations.d.ts +8 -0
  9. package/dist/src/graphql/cloud/mutations.js +115 -0
  10. package/dist/src/graphql/cloud/queries.d.ts +5 -0
  11. package/dist/src/graphql/cloud/queries.js +121 -0
  12. package/dist/src/graphql/computing/mutations.d.ts +10 -0
  13. package/dist/src/graphql/computing/mutations.js +110 -0
  14. package/dist/src/graphql/computing/queries.d.ts +3 -0
  15. package/dist/src/graphql/computing/queries.js +48 -0
  16. package/dist/src/graphql/crm/mutations.d.ts +8 -0
  17. package/dist/src/graphql/crm/mutations.js +316 -0
  18. package/dist/src/graphql/crm/queries.d.ts +7 -0
  19. package/dist/src/graphql/crm/queries.js +281 -0
  20. package/dist/src/graphql/payment/mutations.d.ts +1 -0
  21. package/dist/src/graphql/payment/mutations.js +35 -0
  22. package/dist/src/graphql/payment/queries.d.ts +2 -0
  23. package/dist/src/graphql/payment/queries.js +23 -0
  24. package/dist/src/graphql/product/mutations.d.ts +0 -0
  25. package/dist/src/graphql/product/mutations.js +1 -0
  26. package/dist/src/graphql/product/queries.d.ts +11 -0
  27. package/dist/src/graphql/product/queries.js +431 -0
  28. package/dist/src/graphql/service/mutations.d.ts +10 -0
  29. package/dist/src/graphql/service/mutations.js +284 -0
  30. package/dist/src/graphql/service/queries.d.ts +6 -0
  31. package/dist/src/graphql/service/queries.js +174 -0
  32. package/dist/src/graphql/user/mutations.d.ts +4 -0
  33. package/dist/src/graphql/user/mutations.js +118 -0
  34. package/dist/src/graphql/user/queries.d.ts +13 -0
  35. package/dist/src/graphql/user/queries.js +252 -0
  36. package/dist/src/index.d.ts +1 -0
  37. package/dist/src/index.js +5 -0
  38. package/dist/src/lib/SDK.d.ts +42 -0
  39. package/dist/src/lib/SDK.js +71 -0
  40. package/dist/src/lib/auth/index.d.ts +27 -0
  41. package/dist/src/lib/auth/index.js +72 -0
  42. package/dist/src/lib/cloud/index.d.ts +25 -0
  43. package/dist/src/lib/cloud/index.js +248 -0
  44. package/dist/src/lib/computing/index.d.ts +25 -0
  45. package/dist/src/lib/computing/index.js +254 -0
  46. package/dist/src/lib/crm/index.d.ts +21 -0
  47. package/dist/src/lib/crm/index.js +296 -0
  48. package/dist/src/lib/order/index.d.ts +452 -0
  49. package/dist/src/lib/order/index.js +1204 -0
  50. package/dist/src/lib/payment/index.d.ts +7 -0
  51. package/dist/src/lib/payment/index.js +69 -0
  52. package/dist/src/lib/product/index.d.ts +37 -0
  53. package/dist/src/lib/product/index.js +132 -0
  54. package/dist/src/lib/service/index.d.ts +94 -0
  55. package/dist/src/lib/service/index.js +348 -0
  56. package/dist/src/lib/service.d.ts +14 -0
  57. package/dist/src/lib/service.js +101 -0
  58. package/dist/src/lib/serviceSDK.d.ts +18 -0
  59. package/dist/src/lib/serviceSDK.js +187 -0
  60. package/dist/src/lib/user/index.d.ts +23 -0
  61. package/dist/src/lib/user/index.js +345 -0
  62. package/dist/src/lib/warehouse/index.d.ts +20 -0
  63. package/dist/src/lib/warehouse/index.js +48 -0
  64. package/dist/src/types/auth.d.ts +82 -0
  65. package/dist/src/types/auth.js +2 -0
  66. package/dist/src/types/cloud.d.ts +40 -0
  67. package/dist/src/types/cloud.js +2 -0
  68. package/dist/src/types/computing.d.ts +16 -0
  69. package/dist/src/types/computing.js +2 -0
  70. package/dist/src/types/crm.d.ts +291 -0
  71. package/dist/src/types/crm.js +2 -0
  72. package/dist/src/types/order.d.ts +54 -0
  73. package/dist/src/types/order.js +2 -0
  74. package/dist/src/types/product.d.ts +63 -0
  75. package/dist/src/types/product.js +2 -0
  76. package/dist/src/types/service.d.ts +29 -0
  77. package/dist/src/types/service.js +2 -0
  78. package/dist/src/types/user.d.ts +95 -0
  79. package/dist/src/types/user.js +2 -0
  80. package/dist/src/types/warehouse.d.ts +5 -0
  81. package/dist/src/types/warehouse.js +2 -0
  82. package/dist/src/utils/helpers.d.ts +4 -0
  83. package/dist/src/utils/helpers.js +41 -0
  84. package/package.json +43 -0
@@ -0,0 +1,20 @@
1
+ import { ListProduct } from "../../types/warehouse";
2
+ import { Service } from "../serviceSDK";
3
+ export declare class WarehouseService extends Service {
4
+ /**
5
+ * Constructs a new OrderService instance.
6
+ * @param endpoint - The endpoint URL for the service.
7
+ * @param orgId - The organization ID.
8
+ * @param storeId - The store ID.
9
+ */
10
+ constructor(endpoint: string, orgId: string, storeId: string);
11
+ setToken(token: string): void;
12
+ /**
13
+ * get product inventory
14
+ * @param warehouseId - the id of the warehouse
15
+ * @param listProduct - list product
16
+ * @returns A promise that resolves with the created order.
17
+ * @throws If an error occurs while creating the order.
18
+ */
19
+ getInventory(warehouseId: string, listProduct: ListProduct[]): Promise<any>;
20
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.WarehouseService = void 0;
13
+ const serviceSDK_1 = require("../serviceSDK");
14
+ class WarehouseService extends serviceSDK_1.Service {
15
+ /**
16
+ * Constructs a new OrderService instance.
17
+ * @param endpoint - The endpoint URL for the service.
18
+ * @param orgId - The organization ID.
19
+ * @param storeId - The store ID.
20
+ */
21
+ constructor(endpoint, orgId, storeId) {
22
+ super(endpoint, orgId, storeId);
23
+ }
24
+ setToken(token) {
25
+ this.token = token;
26
+ }
27
+ /**
28
+ * get product inventory
29
+ * @param warehouseId - the id of the warehouse
30
+ * @param listProduct - list product
31
+ * @returns A promise that resolves with the created order.
32
+ * @throws If an error occurs while creating the order.
33
+ */
34
+ getInventory(warehouseId, listProduct) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ const endpoint = `/product-inventory/${warehouseId}`;
37
+ const method = "POST";
38
+ try {
39
+ const response = yield this.restApiCallWithNoToken(endpoint, method, listProduct);
40
+ return response;
41
+ }
42
+ catch (error) {
43
+ throw error;
44
+ }
45
+ });
46
+ }
47
+ }
48
+ exports.WarehouseService = WarehouseService;
@@ -0,0 +1,82 @@
1
+ export interface LoginRequest {
2
+ username: string;
3
+ password: string;
4
+ }
5
+ export interface LoginResponse {
6
+ partyId: string;
7
+ orgId: string;
8
+ fullName: string;
9
+ email: string;
10
+ phone: string;
11
+ address: string;
12
+ identityNumber: string;
13
+ gender: string;
14
+ birthDate: string;
15
+ avatarUrl: string;
16
+ accessToken: string;
17
+ username: string;
18
+ orgPermissionsMap: Record<string, any>;
19
+ orgPositionsMap: Record<string, any>;
20
+ orgRolesMap: Record<string, any>;
21
+ }
22
+ export interface RegisterRequest {
23
+ username: string;
24
+ fullName: string;
25
+ password: string;
26
+ userIP: string;
27
+ }
28
+ export interface RegisterResponse {
29
+ id: string;
30
+ partyId: string;
31
+ type: string;
32
+ username: string;
33
+ status: string;
34
+ accessToken: string;
35
+ }
36
+ export interface SendSmsVerifyCodeResponse {
37
+ id: string;
38
+ code: string;
39
+ username: string;
40
+ timeExpired: string;
41
+ }
42
+ export interface SmsVerifyCodeRequest {
43
+ username: string;
44
+ code: string;
45
+ }
46
+ export interface ResetPasswordRequest {
47
+ username: string;
48
+ newPassword: string;
49
+ accessToken: string;
50
+ }
51
+ export interface ResetPasswordResponse {
52
+ success: boolean;
53
+ }
54
+ export interface UpdateInfoRequest {
55
+ orgId?: string | null;
56
+ accessToken?: string | null;
57
+ updateUserRequest: {
58
+ fullName?: string | null;
59
+ address?: string | null;
60
+ gender?: string | null;
61
+ birthDateLongTime?: string | null;
62
+ birthDate?: string | null;
63
+ email?: string | null;
64
+ identityNumber?: string | null;
65
+ phone?: string | null;
66
+ imageUrl?: string | null;
67
+ personalTitle?: string | null;
68
+ };
69
+ type?: string | null;
70
+ password?: string | null;
71
+ }
72
+ export interface UpdateInfoResponse {
73
+ partyId: string;
74
+ fullName: string;
75
+ email: string;
76
+ phone: string;
77
+ address: string;
78
+ identityNumber: string;
79
+ gender: string;
80
+ birthDate: string;
81
+ avatarUrl: string;
82
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,40 @@
1
+ export interface CreateUserMailHosting {
2
+ serviceId: string;
3
+ username: string;
4
+ password: string;
5
+ fullName: string;
6
+ }
7
+ export interface UpdateUserPassword {
8
+ serviceId: string;
9
+ username: string;
10
+ password: string;
11
+ }
12
+ export interface DeleteUserPassword {
13
+ serviceId: string;
14
+ username: string;
15
+ }
16
+ export interface UpdateInforMationService {
17
+ serviceId: string;
18
+ useUpdate: string;
19
+ valueUpdate: string;
20
+ }
21
+ export interface Filter {
22
+ serviceId: string;
23
+ type: string;
24
+ status: ServiceStatus;
25
+ salePartyId: string;
26
+ offset: number;
27
+ maxResult: number;
28
+ ownerId: string;
29
+ commonSearch: string;
30
+ }
31
+ export interface ServiceStatus {
32
+ CREATED: "CREATED";
33
+ UPGRADED: "UPGRADED";
34
+ PROCESSING: "PROCESSING";
35
+ COMPLETED: "COMPLETED";
36
+ ERROR: "ERROR";
37
+ SUSPEND: "SUSPEND";
38
+ CANCELLED: "CANCELLED";
39
+ CLOSED: "CLOSED";
40
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ export interface UpdateDescriptionPortNat {
2
+ portNatId: string;
3
+ description: string;
4
+ }
5
+ export interface CreatePortNat {
6
+ portNatId: string;
7
+ translatedPort: string;
8
+ }
9
+ export interface CreateSnapShot {
10
+ computingId: string;
11
+ snapshotName: string;
12
+ }
13
+ export interface RollBackSnapShot {
14
+ computingId: string;
15
+ snapshotId: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,291 @@
1
+ export interface AddOpportunityRequest {
2
+ name: string;
3
+ description: string;
4
+ parentId?: string | null;
5
+ priorityName: string;
6
+ referName: string;
7
+ referPhone: string;
8
+ referEmail: string;
9
+ targetId: string;
10
+ extSource: string;
11
+ ownerId: string;
12
+ }
13
+ export interface Opportunity {
14
+ goal: string;
15
+ campaignId: string;
16
+ valueReal: number;
17
+ valueExpect: number;
18
+ successRate: number;
19
+ referName?: string | null;
20
+ referPhone?: string | null;
21
+ referEmail?: string | null;
22
+ id: string;
23
+ createdBy: string;
24
+ ownerId?: string | null;
25
+ workEffortTypeId: string;
26
+ partyId?: string | null;
27
+ name: string;
28
+ description: string;
29
+ parentId: string | null;
30
+ status: string;
31
+ stmId: string;
32
+ createdStamp: string;
33
+ updatedStamp: string;
34
+ endDateExpect?: string | null;
35
+ priorityName: string;
36
+ targetId?: string | null;
37
+ targetType?: string | null;
38
+ targetUrl?: string | null;
39
+ extSource?: string | null;
40
+ connectorId?: string | null;
41
+ processResult?: string | null;
42
+ }
43
+ export interface GetOpportunityRequest {
44
+ id: string;
45
+ pageSize: number;
46
+ pageNumber: number;
47
+ isPagination: boolean;
48
+ sort: {
49
+ key: string;
50
+ asc: boolean;
51
+ };
52
+ }
53
+ export interface GetOpportunity {
54
+ total: number;
55
+ data: OpjectOpportunity[];
56
+ }
57
+ export interface OpjectOpportunity {
58
+ goal: string;
59
+ campaignId: string;
60
+ valueReal: number;
61
+ valueExpect: number;
62
+ successRate: number;
63
+ referName: string;
64
+ referPhone: string;
65
+ referEmail: string;
66
+ id: string;
67
+ createdBy: string;
68
+ ownerId: string;
69
+ workEffortTypeId: string;
70
+ partyId: string;
71
+ name: string;
72
+ description: string;
73
+ parentId: string;
74
+ status: number;
75
+ stmId: string;
76
+ createdStamp: string;
77
+ updatedStamp: string;
78
+ endDateExpect: string;
79
+ priorityName: string;
80
+ targetId: string;
81
+ targetType: string;
82
+ targetUrl: string;
83
+ extSource: string;
84
+ connectorId: string;
85
+ processResult: number;
86
+ }
87
+ export interface getListWorkEffortType {
88
+ id: string;
89
+ name: string;
90
+ group: string;
91
+ createdStamp: string;
92
+ updatedStamp: string;
93
+ updatedBy: string;
94
+ createdBy: string;
95
+ partyId: string;
96
+ actionLinkId: string;
97
+ partyGroupIds: string[];
98
+ description: string;
99
+ workFlow: workFlow;
100
+ }
101
+ export interface ListToDo {
102
+ workEffortId: string;
103
+ toDoList: toDoList;
104
+ }
105
+ export interface toDoList {
106
+ listAttachment: listAttachment;
107
+ isDone: boolean;
108
+ id: string;
109
+ workEffortTypeId: string;
110
+ workEffortType: workEffortType;
111
+ partyId: string;
112
+ name: string;
113
+ description: string;
114
+ parentId: string;
115
+ parentType: string;
116
+ status: number;
117
+ createdStamp: string;
118
+ updatedStamp: string;
119
+ source: string;
120
+ mode: string;
121
+ connectorId: string;
122
+ actionLink: actionLink;
123
+ partyGroupIds: string;
124
+ tagIds: string;
125
+ processResult: number;
126
+ }
127
+ export interface actionLink {
128
+ name: string;
129
+ uri: string;
130
+ type: string;
131
+ partyId: string;
132
+ fromCollection: string;
133
+ toCollection: string;
134
+ group: string;
135
+ params: string;
136
+ id: string;
137
+ createdStamp: string;
138
+ updatedStamp: string;
139
+ updatedBy: string;
140
+ createdBy: string;
141
+ }
142
+ export interface workEffortType {
143
+ id: string;
144
+ name: string;
145
+ group: string;
146
+ createdStamp: string;
147
+ updatedStamp: string;
148
+ updatedBy: string;
149
+ createdBy: string;
150
+ partyId: string;
151
+ actionLinkId: string;
152
+ partyGroupIds: string;
153
+ description: string;
154
+ workFlow: workFlow;
155
+ }
156
+ export interface workFlow {
157
+ stages: stages;
158
+ }
159
+ export interface stages {
160
+ id: string;
161
+ name: string;
162
+ mode: string;
163
+ workEffortTypeId: string;
164
+ }
165
+ export interface listAttachment {
166
+ id: string;
167
+ createdStamp: string;
168
+ createdBy: string;
169
+ updatedBy: string;
170
+ updatedStamp: string;
171
+ partyId: string;
172
+ path: string;
173
+ srcId: string;
174
+ srcName: string;
175
+ srcPath: string;
176
+ srcConfigPathId: string;
177
+ name: string;
178
+ fileType: string;
179
+ type: string;
180
+ status: string;
181
+ referId: string[];
182
+ }
183
+ export interface updateWorkEffortDescription {
184
+ id: string;
185
+ createdStamp: string;
186
+ updatedStamp: string;
187
+ createdBy: string;
188
+ updatedBy: string;
189
+ name: string;
190
+ partyId: string;
191
+ targetId: string;
192
+ targetType: string;
193
+ targetUrl: string;
194
+ description: string;
195
+ status: number;
196
+ parentId: string;
197
+ workEffortTypeId: string;
198
+ stmId: string;
199
+ workflowId: string;
200
+ endDateExpect: string;
201
+ endDateActual: string;
202
+ startDateActual: string;
203
+ startDateExpect: string;
204
+ source: string;
205
+ ownerId: string;
206
+ priorityName: string;
207
+ priorityValue: number;
208
+ extSource: string;
209
+ extSourceTopicId: string;
210
+ extSourceSocialAppId: string;
211
+ extSourceSupportChannelType: string;
212
+ extSourceSocialChannelType: string;
213
+ extSourceSocialAppName: string;
214
+ extSourceTopicUrl: string;
215
+ connectorId: string;
216
+ mode: string;
217
+ partyGroupIds: [string];
218
+ tagIds: [string];
219
+ processResult: number;
220
+ }
221
+ export interface getTicketRequest {
222
+ estimateTime: string;
223
+ keyword: string;
224
+ id: string;
225
+ ids: [string];
226
+ ignoreIds: string;
227
+ partyGroupId: string;
228
+ name: string;
229
+ workEffortTypeId: string;
230
+ createdBy: string;
231
+ partyId: string;
232
+ accountableId: string;
233
+ parentId: string;
234
+ status: number;
235
+ statuses: [number];
236
+ processResult: number;
237
+ ownerId: string;
238
+ priorityName: Priority;
239
+ targetId: string;
240
+ targetType: string;
241
+ fromDate: Date;
242
+ toDate: Date;
243
+ isPagination: boolean;
244
+ sort: sort;
245
+ pageNumber: number;
246
+ pageSize: number;
247
+ extSource: string;
248
+ connectorId: string;
249
+ }
250
+ export interface sort {
251
+ key: string;
252
+ asc: boolean;
253
+ }
254
+ export interface Priority {
255
+ HIGH: "HIGH";
256
+ MEDIUM: "MEDIUM";
257
+ LOW: "LOW";
258
+ }
259
+ export interface AddTicketRequest {
260
+ name: string;
261
+ description: string;
262
+ workEffortTypeId: string;
263
+ workEffortTypeAction: string;
264
+ ownerId: string;
265
+ parentId: string;
266
+ priorityName: Priority;
267
+ accountableId: string;
268
+ targetId: string;
269
+ targetType: string;
270
+ targetUrl: string;
271
+ extSource: string;
272
+ connectorId: string;
273
+ startDateExpect: string;
274
+ }
275
+ export interface AddAttachmentRequest {
276
+ srcId: string;
277
+ srcName: string;
278
+ srcPath: string;
279
+ srcConfigPathId: string;
280
+ name: string;
281
+ type: string;
282
+ fileType: string;
283
+ }
284
+ export interface GetCommentRequest {
285
+ referId: string;
286
+ type: CommentType;
287
+ }
288
+ export interface CommentType {
289
+ GLOBAL: "GLOBAL";
290
+ INTERNAL: "INTERNAL";
291
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,54 @@
1
+ export interface LineItem {
2
+ quantity: number;
3
+ parent_id?: string;
4
+ product_id: string;
5
+ input_price?: number;
6
+ discount_amount?: number;
7
+ }
8
+ export interface DiscountCampaign {
9
+ type_discount: string;
10
+ discount_amount: 0;
11
+ campaign_id: string;
12
+ campaign_action_id: string;
13
+ campaign_action_type: string;
14
+ }
15
+ export interface CancelOrder {
16
+ reason: "CUSTOMER";
17
+ updatedBy: string;
18
+ note: string;
19
+ orderType: "SALES";
20
+ }
21
+ export interface MemberDiscount {
22
+ type: string;
23
+ amount: 0;
24
+ campaignId: string;
25
+ campaignActionId: string;
26
+ campaignActionType: string;
27
+ }
28
+ export interface CampaignPromotion {
29
+ campaign_id: string;
30
+ campaign_action_id: string;
31
+ campaign_action_type: string;
32
+ }
33
+ export interface OrderQuery {
34
+ order_id?: string;
35
+ status?: [number];
36
+ status_ignore?: [number];
37
+ sub_status?: string;
38
+ ffm_status?: string;
39
+ sub_type?: string;
40
+ payment_method?: string;
41
+ keyword?: string;
42
+ customer_multi_value?: string;
43
+ product_multi_value?: string;
44
+ customer_id?: string;
45
+ created_by?: string;
46
+ date_create_from?: number;
47
+ date_create_to?: number;
48
+ date_update_from?: number;
49
+ date_update_to?: number;
50
+ employee_assign?: string;
51
+ currentPage?: number;
52
+ maxResult?: number;
53
+ source?: string;
54
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,63 @@
1
+ export interface Product {
2
+ id: string;
3
+ title: string;
4
+ description: string;
5
+ sku: string;
6
+ price: number;
7
+ available: boolean;
8
+ categories: Category[];
9
+ featuredImage: string;
10
+ subType: string;
11
+ }
12
+ export interface Category {
13
+ id: string;
14
+ title: string;
15
+ image: string;
16
+ icon: string;
17
+ parentId: string | null;
18
+ level: number;
19
+ sequence: number;
20
+ handle: string;
21
+ }
22
+ export interface ProductFilterOptions {
23
+ partnerId?: string;
24
+ storeChannel?: string;
25
+ category?: string;
26
+ product?: string;
27
+ sku?: string;
28
+ tag?: string;
29
+ priceFrom?: number;
30
+ priceTo?: number;
31
+ status?: string;
32
+ productType?: string;
33
+ subType?: string;
34
+ brandId?: string;
35
+ keyword?: string;
36
+ display?: boolean;
37
+ onlyPromotion?: boolean;
38
+ currentPage?: number;
39
+ maxResult?: number;
40
+ }
41
+ export interface CategoryFilterOptions {
42
+ partnerId?: string;
43
+ storeChannel?: string;
44
+ typeBuild?: string;
45
+ level?: number;
46
+ }
47
+ export interface Category {
48
+ id: string;
49
+ title: string;
50
+ image: string;
51
+ icon: string;
52
+ parentId: string | null;
53
+ level: number;
54
+ sequence: number;
55
+ handle: string;
56
+ child?: Category[];
57
+ }
58
+ export interface Brand {
59
+ id: string;
60
+ name: string;
61
+ image: string;
62
+ imageIcon: string;
63
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ export interface ServiceRequest {
2
+ partnerId: String;
3
+ serviceName: String;
4
+ serviceId: String;
5
+ type: String;
6
+ typeName: String;
7
+ orderId: String;
8
+ orderLineItemId: String;
9
+ orderItemTermId: String;
10
+ status: String;
11
+ ownerId: String;
12
+ ownerName: String;
13
+ ownerEmail: String;
14
+ ownerPhone: String;
15
+ saleName: String;
16
+ salePartyId: String;
17
+ startDate: Date;
18
+ endDate: Date;
19
+ version: String;
20
+ location: String;
21
+ description: String;
22
+ username: String;
23
+ password: String;
24
+ urlPrivate: String;
25
+ urlPublic: String;
26
+ serviceType: Number;
27
+ actionResult: String;
28
+ attrs: {};
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });