@longvansoftware/storefront-js-client 0.0.2 → 1.0.1

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 (51) hide show
  1. package/dist/config/config.d.ts +18 -0
  2. package/dist/config/config.js +21 -0
  3. package/dist/src/graphql/auth/mutations.d.ts +7 -0
  4. package/dist/src/graphql/auth/mutations.js +99 -0
  5. package/dist/src/graphql/crm/mutations.d.ts +6 -0
  6. package/dist/src/graphql/crm/mutations.js +258 -0
  7. package/dist/src/graphql/crm/queries.d.ts +3 -0
  8. package/dist/src/graphql/crm/queries.js +155 -0
  9. package/dist/src/graphql/payment/mutations.d.ts +1 -0
  10. package/dist/src/graphql/payment/mutations.js +35 -0
  11. package/dist/src/graphql/payment/queries.d.ts +1 -0
  12. package/dist/src/graphql/payment/queries.js +12 -0
  13. package/dist/src/graphql/product/mutations.d.ts +0 -0
  14. package/dist/src/graphql/product/mutations.js +1 -0
  15. package/dist/src/graphql/product/queries.d.ts +10 -0
  16. package/dist/src/graphql/product/queries.js +415 -0
  17. package/dist/src/graphql/user/mutations.d.ts +3 -0
  18. package/dist/src/graphql/user/mutations.js +87 -0
  19. package/dist/src/graphql/user/queries.d.ts +3 -0
  20. package/dist/src/graphql/user/queries.js +67 -0
  21. package/dist/src/index.d.ts +1 -0
  22. package/dist/src/index.js +5 -0
  23. package/dist/src/lib/SDK.d.ts +28 -0
  24. package/dist/src/lib/SDK.js +43 -0
  25. package/dist/src/lib/auth/index.d.ts +26 -0
  26. package/dist/src/lib/auth/index.js +54 -0
  27. package/dist/src/lib/crm/index.d.ts +14 -0
  28. package/dist/src/lib/crm/index.js +185 -0
  29. package/dist/src/lib/order/index.d.ts +87 -0
  30. package/dist/src/lib/order/index.js +209 -0
  31. package/dist/src/lib/payment/index.d.ts +6 -0
  32. package/dist/src/lib/payment/index.js +50 -0
  33. package/dist/src/lib/product/index.d.ts +36 -0
  34. package/dist/src/lib/product/index.js +116 -0
  35. package/dist/src/lib/service.d.ts +14 -0
  36. package/dist/src/lib/service.js +97 -0
  37. package/dist/src/lib/user/index.d.ts +11 -0
  38. package/dist/src/lib/user/index.js +135 -0
  39. package/dist/src/types/auth.d.ts +82 -0
  40. package/dist/src/types/auth.js +2 -0
  41. package/dist/src/types/crm.d.ts +219 -0
  42. package/dist/src/types/crm.js +2 -0
  43. package/dist/src/types/order.d.ts +7 -0
  44. package/dist/src/types/order.js +2 -0
  45. package/dist/src/types/product.d.ts +61 -0
  46. package/dist/src/types/product.js +2 -0
  47. package/dist/src/types/user.d.ts +49 -0
  48. package/dist/src/types/user.js +2 -0
  49. package/dist/src/utils/helpers.d.ts +4 -0
  50. package/dist/src/utils/helpers.js +41 -0
  51. package/package.json +25 -19
@@ -0,0 +1,116 @@
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.ProductService = void 0;
13
+ const service_1 = require("../service");
14
+ const queries_1 = require("../../graphql/product/queries");
15
+ /**
16
+ * Service class for managing product-related operations.
17
+ */
18
+ class ProductService extends service_1.Service {
19
+ /**
20
+ * Constructs a new ProductService instance.
21
+ * @param endpoint - The endpoint URL for the service.
22
+ * @param orgId - The organization ID.
23
+ * @param storeId - The store ID.
24
+ */
25
+ constructor(endpoint, orgId, storeId) {
26
+ super(endpoint, orgId, storeId);
27
+ }
28
+ // ...
29
+ /**
30
+ * Retrieves a product by its ID.
31
+ * @param productId - The ID of the product.
32
+ * @returns A promise that resolves to the product.
33
+ * @throws If an error occurs while fetching the product.
34
+ */
35
+ getProductById(productId) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ const query = queries_1.GET_PRODUCT_BY_ID_QUERY;
38
+ const variables = {
39
+ partnerId: this.orgId,
40
+ storeChannel: this.storeId,
41
+ productId,
42
+ };
43
+ try {
44
+ const response = yield this.graphqlQuery(query, variables);
45
+ return response.getProductById;
46
+ }
47
+ catch (error) {
48
+ console.log(`Error fetching product by ID: ${error}`);
49
+ throw error;
50
+ }
51
+ });
52
+ }
53
+ /**
54
+ * Retrieves a product by its slug.
55
+ * @param slug - The slug of the product.
56
+ * @returns A promise that resolves to the product.
57
+ * @throws If an error occurs while fetching the product.
58
+ */
59
+ getProductBySlug(slug) {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ const query = queries_1.GET_PRODUCT_BY_SLUG_QUERY;
62
+ const variables = {
63
+ partnerId: this.orgId,
64
+ storeChannel: this.storeId,
65
+ handle: slug,
66
+ };
67
+ try {
68
+ const response = yield this.graphqlQuery(query, variables);
69
+ return response.getProductByHandle;
70
+ }
71
+ catch (error) {
72
+ console.log(`Error fetching product by slug: ${error}`);
73
+ throw error;
74
+ }
75
+ });
76
+ }
77
+ /**
78
+ * Retrieves simple products based on the provided variables.
79
+ * @param variables - The variables for the query.
80
+ * @returns A promise that resolves to the simple products.
81
+ * @throws If an error occurs while fetching the simple products.
82
+ */
83
+ getSimpleProducts(variables) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ const query = queries_1.GET_SIMPLE_PRODUCTS_QUERY;
86
+ const variablesHandle = Object.assign({ partnerId: this.orgId, storeChannel: this.storeId }, variables);
87
+ try {
88
+ const response = yield this.graphqlQuery(query, variablesHandle);
89
+ return response.getSimpleProducts;
90
+ }
91
+ catch (error) {
92
+ console.log(`Error fetching simple products: ${error}`);
93
+ throw error;
94
+ }
95
+ });
96
+ }
97
+ getProductOption(productId) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ const query = queries_1.GET_PRODUCT_OPTION;
100
+ const variablesHandle = {
101
+ partnerId: this.orgId,
102
+ storeChannel: this.storeId,
103
+ productId,
104
+ };
105
+ try {
106
+ const response = yield this.graphqlQuery(query, variablesHandle);
107
+ return response.getProductOption;
108
+ }
109
+ catch (error) {
110
+ console.log(`Error fetching simple products: ${error}`);
111
+ throw error;
112
+ }
113
+ });
114
+ }
115
+ }
116
+ exports.ProductService = ProductService;
@@ -0,0 +1,14 @@
1
+ import { ApolloClient, NormalizedCacheObject } from "@apollo/client";
2
+ import { DocumentNode } from "graphql";
3
+ export declare class Service {
4
+ protected token: string | null;
5
+ protected client: ApolloClient<NormalizedCacheObject>;
6
+ protected orgId: string;
7
+ protected storeId: string;
8
+ protected endpoint: string;
9
+ constructor(endpoint: string, orgId: string, storeId: string);
10
+ setToken(token: string): void;
11
+ protected graphqlQuery(query: DocumentNode, variables: any): Promise<any>;
12
+ protected graphqlMutation(mutation: DocumentNode, variables: any): Promise<any>;
13
+ protected restApiCallWithToken(path: string, method: "GET" | "POST" | "PUT" | "DELETE", data?: any, headers?: any): Promise<any>;
14
+ }
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ // src/service.ts
3
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
+ return new (P || (P = Promise))(function (resolve, reject) {
6
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
7
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
8
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
9
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
10
+ });
11
+ };
12
+ var __importDefault = (this && this.__importDefault) || function (mod) {
13
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14
+ };
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Service = void 0;
17
+ const client_1 = require("@apollo/client");
18
+ const axios_1 = __importDefault(require("axios"));
19
+ class Service {
20
+ constructor(endpoint, orgId, storeId) {
21
+ this.token = null;
22
+ this.client = new client_1.ApolloClient({
23
+ uri: endpoint,
24
+ cache: new client_1.InMemoryCache(),
25
+ defaultOptions: {
26
+ query: {
27
+ fetchPolicy: "network-only",
28
+ },
29
+ },
30
+ });
31
+ this.orgId = orgId;
32
+ this.storeId = storeId;
33
+ this.endpoint = endpoint;
34
+ }
35
+ setToken(token) {
36
+ this.token = token;
37
+ }
38
+ graphqlQuery(query, variables) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ try {
41
+ const { data, errors } = yield this.client.query({
42
+ query: (0, client_1.gql) `
43
+ ${query}
44
+ `,
45
+ variables,
46
+ });
47
+ if (errors) {
48
+ throw new Error(`GraphQL error! errors: ${errors}`);
49
+ }
50
+ return data;
51
+ }
52
+ catch (error) {
53
+ console.log(`Error in graphqlQuery: ${error}`);
54
+ throw error;
55
+ }
56
+ });
57
+ }
58
+ graphqlMutation(mutation, variables) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ try {
61
+ const { data, errors } = yield this.client.mutate({
62
+ mutation: (0, client_1.gql) `
63
+ ${mutation}
64
+ `,
65
+ variables,
66
+ });
67
+ if (errors) {
68
+ throw new Error(`GraphQL error! errors: ${errors}`);
69
+ }
70
+ return data;
71
+ }
72
+ catch (error) {
73
+ console.log(`Error in graphqlMutation: ${error}`);
74
+ throw error;
75
+ }
76
+ });
77
+ }
78
+ restApiCallWithToken(path, method, data, headers) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ try {
81
+ const modifiedHeaders = Object.assign(Object.assign({}, headers), { "Partner-Id": this.orgId, "X-Ecomos-Access-Token": this.token });
82
+ const response = yield (0, axios_1.default)({
83
+ url: this.endpoint + path,
84
+ method,
85
+ data,
86
+ headers: modifiedHeaders,
87
+ });
88
+ return response.data;
89
+ }
90
+ catch (error) {
91
+ console.log(`Error in restApiCallWithToken: ${error}`);
92
+ throw error;
93
+ }
94
+ });
95
+ }
96
+ }
97
+ exports.Service = Service;
@@ -0,0 +1,11 @@
1
+ import { Service } from '../service';
2
+ import { createCompanyRequest, updateCustomerRequest } from '../../types/user';
3
+ export declare class UserService extends Service {
4
+ constructor(endpoint: string, orgId: string, storeId: string);
5
+ getPersonByPartyIds(partyIds: string[]): Promise<any>;
6
+ createCompany(payload: createCompanyRequest, createdBy: string): Promise<any>;
7
+ updateCompanyInfo(id: string, fieldName: string, valueUpdate: string, updatedBy: string): Promise<any>;
8
+ updateCustomerV2(id: string, customerItem: updateCustomerRequest, updatedBy: string): Promise<any>;
9
+ getCustomerById(id: string): Promise<any>;
10
+ searchCompany(keyword: string): Promise<any>;
11
+ }
@@ -0,0 +1,135 @@
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.UserService = void 0;
13
+ const service_1 = require("../service");
14
+ const queries_1 = require("../../graphql/user/queries");
15
+ const mutations_1 = require("../../graphql/user/mutations");
16
+ class UserService extends service_1.Service {
17
+ constructor(endpoint, orgId, storeId) {
18
+ super(endpoint, orgId, storeId);
19
+ }
20
+ getPersonByPartyIds(partyIds) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const query = queries_1.GET_PERSON_BY_IDS_QUERY;
23
+ const variables = { partyIds };
24
+ try {
25
+ const response = yield this.graphqlQuery(query, variables);
26
+ return response.getPersonByPartyIds;
27
+ }
28
+ catch (error) {
29
+ console.log(`Error in getPersonByPartyIds: ${error}`);
30
+ throw error;
31
+ }
32
+ });
33
+ }
34
+ createCompany(payload, createdBy) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ const mutation = mutations_1.CREATE_COMPANY;
37
+ const variables = {
38
+ orgId: this.orgId,
39
+ createCompanyRequest: {
40
+ name: payload === null || payload === void 0 ? void 0 : payload.name,
41
+ phone: payload === null || payload === void 0 ? void 0 : payload.phone,
42
+ address: payload === null || payload === void 0 ? void 0 : payload.address,
43
+ },
44
+ createTaxCodeRequest: null,
45
+ createdBy,
46
+ };
47
+ try {
48
+ const response = yield this.graphqlMutation(mutation, variables);
49
+ return response.createCompany;
50
+ }
51
+ catch (error) {
52
+ console.log(`Error in createCompany: ${error}`);
53
+ throw error;
54
+ }
55
+ });
56
+ }
57
+ updateCompanyInfo(id, fieldName, valueUpdate, updatedBy) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const mutation = mutations_1.UPDATE_COMPANY_INFOR;
60
+ const variables = {
61
+ orgId: this.orgId,
62
+ id,
63
+ fieldName,
64
+ valueUpdate,
65
+ updatedBy,
66
+ };
67
+ try {
68
+ const response = yield this.graphqlMutation(mutation, variables);
69
+ return response.updateCompanyInfo;
70
+ }
71
+ catch (error) {
72
+ console.log(`Error in updateCompanyInfo: ${error}`);
73
+ throw error;
74
+ }
75
+ });
76
+ }
77
+ updateCustomerV2(id, customerItem, updatedBy) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ const mutation = mutations_1.UPDATE_CUSTOMER_V2;
80
+ const variables = {
81
+ tenantId: this.orgId,
82
+ id,
83
+ updateCustomerRequest: {
84
+ name: customerItem === null || customerItem === void 0 ? void 0 : customerItem.fullName,
85
+ phone: customerItem === null || customerItem === void 0 ? void 0 : customerItem.phone,
86
+ address: customerItem === null || customerItem === void 0 ? void 0 : customerItem.address
87
+ },
88
+ updatedBy,
89
+ };
90
+ try {
91
+ const response = yield this.graphqlMutation(mutation, variables);
92
+ return response.updateCustomerV2;
93
+ }
94
+ catch (error) {
95
+ console.log(`Error in updateCustomerV2: ${error}`);
96
+ throw error;
97
+ }
98
+ });
99
+ }
100
+ getCustomerById(id) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ const query = queries_1.GET_CUSTOMER_BY_ID;
103
+ const variables = {
104
+ id
105
+ };
106
+ try {
107
+ const response = yield this.graphqlQuery(query, variables);
108
+ return response.getCustomerById;
109
+ }
110
+ catch (error) {
111
+ console.log(`Error in getCustomerById: ${error}`);
112
+ throw error;
113
+ }
114
+ });
115
+ }
116
+ searchCompany(keyword) {
117
+ return __awaiter(this, void 0, void 0, function* () {
118
+ const query = queries_1.SEARCH_COMPANY;
119
+ const variables = {
120
+ keyword,
121
+ orgId: this.orgId,
122
+ limit: 1,
123
+ };
124
+ try {
125
+ const response = yield this.graphqlQuery(query, variables);
126
+ return response.searchCompany;
127
+ }
128
+ catch (error) {
129
+ console.log(`Error in searchCompany: ${error}`);
130
+ throw error;
131
+ }
132
+ });
133
+ }
134
+ }
135
+ exports.UserService = UserService;
@@ -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,219 @@
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
+ }
12
+ export interface Opportunity {
13
+ goal: string;
14
+ campaignId: string;
15
+ valueReal: number;
16
+ valueExpect: number;
17
+ successRate: number;
18
+ referName?: string | null;
19
+ referPhone?: string | null;
20
+ referEmail?: string | null;
21
+ id: string;
22
+ createdBy: string;
23
+ ownerId?: string | null;
24
+ workEffortTypeId: string;
25
+ partyId?: string | null;
26
+ name: string;
27
+ description: string;
28
+ parentId: string | null;
29
+ status: string;
30
+ stmId: string;
31
+ createdStamp: string;
32
+ updatedStamp: string;
33
+ endDateExpect?: string | null;
34
+ priorityName: string;
35
+ targetId?: string | null;
36
+ targetType?: string | null;
37
+ targetUrl?: string | null;
38
+ extSource?: string | null;
39
+ connectorId?: string | null;
40
+ processResult?: string | null;
41
+ }
42
+ export interface GetOpportunityRequest {
43
+ id: string;
44
+ pageSize: number;
45
+ pageNumber: number;
46
+ isPagination: boolean;
47
+ sort: {
48
+ key: string;
49
+ asc: boolean;
50
+ };
51
+ }
52
+ export interface GetOpportunity {
53
+ total: number;
54
+ data: OpjectOpportunity[];
55
+ }
56
+ export interface OpjectOpportunity {
57
+ goal: string;
58
+ campaignId: string;
59
+ valueReal: number;
60
+ valueExpect: number;
61
+ successRate: number;
62
+ referName: string;
63
+ referPhone: string;
64
+ referEmail: string;
65
+ id: string;
66
+ createdBy: string;
67
+ ownerId: string;
68
+ workEffortTypeId: string;
69
+ partyId: string;
70
+ name: string;
71
+ description: string;
72
+ parentId: string;
73
+ status: number;
74
+ stmId: string;
75
+ createdStamp: string;
76
+ updatedStamp: string;
77
+ endDateExpect: string;
78
+ priorityName: string;
79
+ targetId: string;
80
+ targetType: string;
81
+ targetUrl: string;
82
+ extSource: string;
83
+ connectorId: string;
84
+ processResult: number;
85
+ }
86
+ export interface getListWorkEffortType {
87
+ id: string;
88
+ name: string;
89
+ group: string;
90
+ createdStamp: string;
91
+ updatedStamp: string;
92
+ updatedBy: string;
93
+ createdBy: string;
94
+ partyId: string;
95
+ actionLinkId: string;
96
+ partyGroupIds: string[];
97
+ description: string;
98
+ workFlow: workFlow;
99
+ }
100
+ export interface ListToDo {
101
+ workEffortId: string;
102
+ toDoList: toDoList;
103
+ }
104
+ export interface toDoList {
105
+ listAttachment: listAttachment;
106
+ isDone: boolean;
107
+ id: string;
108
+ workEffortTypeId: string;
109
+ workEffortType: workEffortType;
110
+ partyId: string;
111
+ name: string;
112
+ description: string;
113
+ parentId: string;
114
+ parentType: string;
115
+ status: number;
116
+ createdStamp: string;
117
+ updatedStamp: string;
118
+ source: string;
119
+ mode: string;
120
+ connectorId: string;
121
+ actionLink: actionLink;
122
+ partyGroupIds: string;
123
+ tagIds: string;
124
+ processResult: number;
125
+ }
126
+ export interface actionLink {
127
+ name: string;
128
+ uri: string;
129
+ type: string;
130
+ partyId: string;
131
+ fromCollection: string;
132
+ toCollection: string;
133
+ group: string;
134
+ params: string;
135
+ id: string;
136
+ createdStamp: string;
137
+ updatedStamp: string;
138
+ updatedBy: string;
139
+ createdBy: string;
140
+ }
141
+ export interface workEffortType {
142
+ id: string;
143
+ name: string;
144
+ group: string;
145
+ createdStamp: string;
146
+ updatedStamp: string;
147
+ updatedBy: string;
148
+ createdBy: string;
149
+ partyId: string;
150
+ actionLinkId: string;
151
+ partyGroupIds: string;
152
+ description: string;
153
+ workFlow: workFlow;
154
+ }
155
+ export interface workFlow {
156
+ stages: stages;
157
+ }
158
+ export interface stages {
159
+ id: string;
160
+ name: string;
161
+ mode: string;
162
+ workEffortTypeId: string;
163
+ }
164
+ export interface listAttachment {
165
+ id: string;
166
+ createdStamp: string;
167
+ createdBy: string;
168
+ updatedBy: string;
169
+ updatedStamp: string;
170
+ partyId: string;
171
+ path: string;
172
+ srcId: string;
173
+ srcName: string;
174
+ srcPath: string;
175
+ srcConfigPathId: string;
176
+ name: string;
177
+ fileType: string;
178
+ type: string;
179
+ status: string;
180
+ referId: string[];
181
+ }
182
+ export interface updateWorkEffortDescription {
183
+ id: string;
184
+ createdStamp: string;
185
+ updatedStamp: string;
186
+ createdBy: string;
187
+ updatedBy: string;
188
+ name: string;
189
+ partyId: string;
190
+ targetId: string;
191
+ targetType: string;
192
+ targetUrl: string;
193
+ description: string;
194
+ status: number;
195
+ parentId: string;
196
+ workEffortTypeId: string;
197
+ stmId: string;
198
+ workflowId: string;
199
+ endDateExpect: string;
200
+ endDateActual: string;
201
+ startDateActual: string;
202
+ startDateExpect: string;
203
+ source: string;
204
+ ownerId: string;
205
+ priorityName: string;
206
+ priorityValue: number;
207
+ extSource: string;
208
+ extSourceTopicId: string;
209
+ extSourceSocialAppId: string;
210
+ extSourceSupportChannelType: string;
211
+ extSourceSocialChannelType: string;
212
+ extSourceSocialAppName: string;
213
+ extSourceTopicUrl: string;
214
+ connectorId: string;
215
+ mode: string;
216
+ partyGroupIds: [string];
217
+ tagIds: [string];
218
+ processResult: number;
219
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface LineItem {
2
+ quantity: number;
3
+ parent_id: string;
4
+ product_id: string;
5
+ input_price: number;
6
+ discount_amount: number;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });