@longvansoftware/storefront-js-client 4.6.2-truedoc.1 → 4.6.3

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 (75) hide show
  1. package/dist/config/config.js +11 -11
  2. package/dist/src/graphql/accounting_service/mutations.d.ts +2 -0
  3. package/dist/src/graphql/accounting_service/mutations.js +100 -0
  4. package/dist/src/graphql/accounting_service/queries.d.ts +1 -0
  5. package/dist/src/graphql/accounting_service/queries.js +62 -0
  6. package/dist/src/graphql/content_api/queries.d.ts +2 -0
  7. package/dist/src/graphql/content_api/queries.js +23 -0
  8. package/dist/src/graphql/crm_camping/mutations.d.ts +1 -0
  9. package/dist/src/graphql/crm_camping/mutations.js +37 -0
  10. package/dist/src/graphql/crm_camping/queries.d.ts +14 -0
  11. package/dist/src/graphql/crm_camping/queries.js +420 -0
  12. package/dist/src/graphql/orderGraphQL/mutations.d.ts +10 -0
  13. package/dist/src/graphql/orderGraphQL/mutations.js +410 -0
  14. package/dist/src/graphql/orderGraphQL/queries.d.ts +10 -0
  15. package/dist/src/graphql/orderGraphQL/queries.js +480 -0
  16. package/dist/src/graphql/paymentLV/mutations.d.ts +2 -0
  17. package/dist/src/graphql/paymentLV/mutations.js +31 -0
  18. package/dist/src/graphql/paymentLV/queries.d.ts +5 -0
  19. package/dist/src/graphql/paymentLV/queries.js +135 -0
  20. package/dist/src/graphql/product/queries.d.ts +31 -26
  21. package/dist/src/graphql/product/queries.js +420 -18
  22. package/dist/src/graphql/quicklab_service/mutations.d.ts +8 -0
  23. package/dist/src/graphql/quicklab_service/mutations.js +171 -0
  24. package/dist/src/graphql/quicklab_service/queries.d.ts +7 -0
  25. package/dist/src/graphql/quicklab_service/queries.js +131 -0
  26. package/dist/src/graphql/remote_access_service/mutations.d.ts +7 -0
  27. package/dist/src/graphql/remote_access_service/mutations.js +89 -0
  28. package/dist/src/graphql/remote_access_service/queries.d.ts +2 -0
  29. package/dist/src/graphql/remote_access_service/queries.js +34 -0
  30. package/dist/src/graphql/resource_permission/mutations.d.ts +2 -0
  31. package/dist/src/graphql/resource_permission/mutations.js +65 -0
  32. package/dist/src/graphql/resource_permission/queries.d.ts +1 -0
  33. package/dist/src/graphql/resource_permission/queries.js +18 -0
  34. package/dist/src/graphql/storage_s3/mutations.d.ts +27 -0
  35. package/dist/src/graphql/storage_s3/mutations.js +603 -0
  36. package/dist/src/graphql/storage_s3/queries.d.ts +12 -0
  37. package/dist/src/graphql/storage_s3/queries.js +129 -0
  38. package/dist/src/lib/accounting_service/index.d.ts +9 -0
  39. package/dist/src/lib/accounting_service/index.js +69 -0
  40. package/dist/src/lib/cloud_rest/index.d.ts +17 -0
  41. package/dist/src/lib/cloud_rest/index.js +101 -0
  42. package/dist/src/lib/content_api/index.d.ts +7 -0
  43. package/dist/src/lib/content_api/index.js +43 -0
  44. package/dist/src/lib/crm_camping/index.d.ts +21 -0
  45. package/dist/src/lib/crm_camping/index.js +302 -0
  46. package/dist/src/lib/dns/index.d.ts +7 -0
  47. package/dist/src/lib/{cloudService → dns}/index.js +16 -11
  48. package/dist/src/lib/orderGraphQL/index.d.ts +24 -0
  49. package/dist/src/lib/orderGraphQL/index.js +342 -0
  50. package/dist/src/lib/order_cloud_rest/index.d.ts +7 -0
  51. package/dist/src/lib/order_cloud_rest/index.js +39 -0
  52. package/dist/src/lib/paymentLV/index.d.ts +13 -0
  53. package/dist/src/lib/paymentLV/index.js +149 -0
  54. package/dist/src/lib/product/index.d.ts +4 -0
  55. package/dist/src/lib/product/index.js +63 -0
  56. package/dist/src/lib/quicklab_service/index.d.ts +19 -0
  57. package/dist/src/lib/quicklab_service/index.js +211 -0
  58. package/dist/src/lib/remote_access_service/index.d.ts +16 -0
  59. package/dist/src/lib/remote_access_service/index.js +181 -0
  60. package/dist/src/lib/resource_permission/index.d.ts +9 -0
  61. package/dist/src/lib/resource_permission/index.js +82 -0
  62. package/dist/src/lib/service.d.ts +14 -0
  63. package/dist/src/lib/service.js +101 -0
  64. package/dist/src/lib/storage_s3/index.d.ts +42 -0
  65. package/dist/src/lib/storage_s3/index.js +736 -0
  66. package/dist/src/types/remote_access_service.d.ts +12 -0
  67. package/dist/src/types/remote_access_service.js +2 -0
  68. package/dist/src/types/storage_s3.d.ts +10 -0
  69. package/dist/src/types/storage_s3.js +2 -0
  70. package/dist/src/utils/build-field-string.d.ts +1 -0
  71. package/dist/src/utils/build-field-string.js +16 -0
  72. package/package.json +3 -2
  73. package/dist/src/graphql/cloudService/queries.d.ts +0 -1
  74. package/dist/src/graphql/cloudService/queries.js +0 -71
  75. package/dist/src/lib/cloudService/index.d.ts +0 -5
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_LAB_DOING_AND_DONE_BY_USERID = exports.GET_LAB_SESSIONS_CHILL_BY_PARENT = exports.GET_LAB_SESSIONS_BY_USER_ID_AND_ARTICLE_ID = exports.GET_LAB_SESSIONS_BY_USER_ID = exports.GET_TYPE_LAB_SESSION = exports.GET_TEMPLATE_BY_ARTICLE_ID = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ // Danh sách template của bài lab
6
+ exports.GET_TEMPLATE_BY_ARTICLE_ID = (0, graphql_tag_1.gql) `
7
+ query GetTemplatesByArticleId($articleId: String!) {
8
+ getTemplatesByArticleId(articleId: $articleId) {
9
+ templateId
10
+ templateName
11
+ product {
12
+ id
13
+ title
14
+ }
15
+ }
16
+ }
17
+ `;
18
+ // Danh sách loại thực hành
19
+ exports.GET_TYPE_LAB_SESSION = (0, graphql_tag_1.gql) `
20
+ query {
21
+ getTypeLabSessions {
22
+ name
23
+ code
24
+ }
25
+ }
26
+ `;
27
+ // Danh sách phiên thực hành của người dùng
28
+ exports.GET_LAB_SESSIONS_BY_USER_ID = (0, graphql_tag_1.gql) `
29
+ query GetLabSessionsByUserId($userId: String!) {
30
+ getLabSessionsByUserId(userId: $userId) {
31
+ labSessionId
32
+ userId
33
+ typeLabSession
34
+ statusUseName
35
+ statusUse
36
+ startTime
37
+ endTime
38
+ note
39
+ articleId
40
+ articleTitle
41
+ computingId
42
+ computingName
43
+ computingState
44
+ templateId
45
+ templateName
46
+ productId
47
+ productName
48
+ parent
49
+ labSessionIdLast
50
+ statusUseLast
51
+ startTimeLast
52
+ endTimeLast
53
+ noteLast
54
+ }
55
+ }
56
+ `;
57
+ // Danh sách phiên thực hành theo bài lab của người dùng
58
+ exports.GET_LAB_SESSIONS_BY_USER_ID_AND_ARTICLE_ID = (0, graphql_tag_1.gql) `
59
+ query GetLabSessionsByUserIdAndArticleId(
60
+ $userId: String!
61
+ $articleId: String!
62
+ ) {
63
+ getLabSessionsByUserIdAndArticleId(userId: $userId, articleId: $articleId) {
64
+ labSessionId
65
+ userId
66
+ typeLabSession
67
+ statusUseName
68
+ statusUse
69
+ startTime
70
+ endTime
71
+ note
72
+ articleId
73
+ articleTitle
74
+ computingId
75
+ computingName
76
+ computingState
77
+ templateId
78
+ templateName
79
+ productId
80
+ productName
81
+ parent
82
+ labSessionIdLast
83
+ statusUseLast
84
+ startTimeLast
85
+ endTimeLast
86
+ noteLast
87
+ }
88
+ }
89
+ `;
90
+ exports.GET_LAB_SESSIONS_CHILL_BY_PARENT = (0, graphql_tag_1.gql) `
91
+ query GetLabSessionsByUserIdAndArticleId(
92
+ $labSessionId: String!
93
+ $userId: String!
94
+ ) {
95
+ getLabSessionsChillByParent(labSessionId: $labSessionId, userId: $userId) {
96
+ labSessionId
97
+ userId
98
+ typeLabSession
99
+ statusUseName
100
+ statusUse
101
+ startTime
102
+ endTime
103
+ note
104
+ articleId
105
+ articleTitle
106
+ computingId
107
+ computingName
108
+ computingState
109
+ templateId
110
+ templateName
111
+ productId
112
+ productName
113
+ parent
114
+ labSessionIdLast
115
+ statusUseLast
116
+ startTimeLast
117
+ endTimeLast
118
+ noteLast
119
+ }
120
+ }
121
+ `;
122
+ const GET_LAB_DOING_AND_DONE_BY_USERID = (fields = []) => {
123
+ const fieldStr = fields.join("\n ");
124
+ const hasFields = fields.length > 0;
125
+ return (0, graphql_tag_1.gql) `
126
+ query getLabDoingAndDoneByUserId($partnerId: String!, $userId: String!) {
127
+ getLabDoingAndDoneByUserId(partnerId: $partnerId userId: $userId) ${hasFields ? `{ ${fieldStr} }` : ""}
128
+ }
129
+ `;
130
+ };
131
+ exports.GET_LAB_DOING_AND_DONE_BY_USERID = GET_LAB_DOING_AND_DONE_BY_USERID;
@@ -0,0 +1,7 @@
1
+ export declare const CREATE_REMOTE_ACCESS: import("graphql").DocumentNode;
2
+ export declare const UPDATE_REMOTE_ACCESS_NAME: import("graphql").DocumentNode;
3
+ export declare const UPDATE_REMOTE_ACCESS_DESCRIPTION: import("graphql").DocumentNode;
4
+ export declare const UPDATE_REMOTE_ACCESS_TYPE: import("graphql").DocumentNode;
5
+ export declare const UPDATE_REMOTE_ACCESS_INFO: import("graphql").DocumentNode;
6
+ export declare const UPDATE_REMOTE_ACCESS: import("graphql").DocumentNode;
7
+ export declare const DELETE_REMOTE_ACCESS: import("graphql").DocumentNode;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DELETE_REMOTE_ACCESS = exports.UPDATE_REMOTE_ACCESS = exports.UPDATE_REMOTE_ACCESS_INFO = exports.UPDATE_REMOTE_ACCESS_TYPE = exports.UPDATE_REMOTE_ACCESS_DESCRIPTION = exports.UPDATE_REMOTE_ACCESS_NAME = exports.CREATE_REMOTE_ACCESS = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.CREATE_REMOTE_ACCESS = (0, graphql_tag_1.gql) `
6
+ mutation CreateRemoteAccess(
7
+ $remoteAccess: CreateRemoteAccessInput!
8
+ $remoteAccessInfo: RemoteAccessInfoInput!
9
+ $createdBy: String!
10
+ ) {
11
+ createRemoteAccess(
12
+ remoteAccess: $remoteAccess
13
+ remoteAccessInfo: $remoteAccessInfo
14
+ createdBy: $createdBy
15
+ ) {
16
+ id
17
+ }
18
+ }
19
+ `;
20
+ exports.UPDATE_REMOTE_ACCESS_NAME = (0, graphql_tag_1.gql) `
21
+ mutation UpdateRemoteAccessName(
22
+ $remoteAccessId: String!
23
+ $name: String!
24
+ $updatedBy: String!
25
+ ) {
26
+ updateRemoteAccessName(
27
+ remoteAccessId: $remoteAccessId
28
+ name: $name
29
+ updatedBy: $updatedBy
30
+ )
31
+ }
32
+ `;
33
+ exports.UPDATE_REMOTE_ACCESS_DESCRIPTION = (0, graphql_tag_1.gql) `
34
+ mutation UpdateRemoteAccessDescription(
35
+ $remoteAccessId: String!
36
+ $description: String!
37
+ $updatedBy: String!
38
+ ) {
39
+ updateRemoteAccessDescription(
40
+ remoteAccessId: $remoteAccessId
41
+ description: $description
42
+ updatedBy: $updatedBy
43
+ )
44
+ }
45
+ `;
46
+ exports.UPDATE_REMOTE_ACCESS_TYPE = (0, graphql_tag_1.gql) `
47
+ mutation UpdateRemoteAccessType(
48
+ $remoteAccessId: String!
49
+ $type: RemoteAccessType!
50
+ $updatedBy: String!
51
+ ) {
52
+ updateRemoteAccessType(
53
+ remoteAccessId: $remoteAccessId
54
+ type: $type
55
+ updatedBy: $updatedBy
56
+ )
57
+ }
58
+ `;
59
+ exports.UPDATE_REMOTE_ACCESS_INFO = (0, graphql_tag_1.gql) `
60
+ mutation UpdateRemoteAccessInfo(
61
+ $remoteAccessId: String!
62
+ $remoteAccessInfoInput: RemoteAccessInfoInput!
63
+ $updatedBy: String!
64
+ ) {
65
+ updateRemoteAccessInfo(
66
+ remoteAccessId: $remoteAccessId
67
+ remoteAccessInfoInput: $remoteAccessInfoInput
68
+ updatedBy: $updatedBy
69
+ )
70
+ }
71
+ `;
72
+ exports.UPDATE_REMOTE_ACCESS = (0, graphql_tag_1.gql) `
73
+ mutation UpdateRemoteAccess(
74
+ $remoteAccessId: String!
75
+ $updateRemoteAccessDTO: UpdateRemoteAccessDTO!
76
+ $updatedBy: String!
77
+ ) {
78
+ updateRemoteAccess(
79
+ remoteAccessId: $remoteAccessId
80
+ updateRemoteAccessDTO: $updateRemoteAccessDTO
81
+ updatedBy: $updatedBy
82
+ )
83
+ }
84
+ `;
85
+ exports.DELETE_REMOTE_ACCESS = (0, graphql_tag_1.gql) `
86
+ mutation DeleteRemoteAccess($remoteAccessId: String!, $updatedBy: String!) {
87
+ deleteRemoteAccess(remoteAccessId: $remoteAccessId, updatedBy: $updatedBy)
88
+ }
89
+ `;
@@ -0,0 +1,2 @@
1
+ export declare const GET_REMOTE_ACCESS_BY_TARGETID_AND_TARGETTYPE: import("graphql").DocumentNode;
2
+ export declare const GET_CONNECTION_INFO_FROM_REMOTE_ACCESS_BY_ID: import("graphql").DocumentNode;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_CONNECTION_INFO_FROM_REMOTE_ACCESS_BY_ID = exports.GET_REMOTE_ACCESS_BY_TARGETID_AND_TARGETTYPE = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.GET_REMOTE_ACCESS_BY_TARGETID_AND_TARGETTYPE = (0, graphql_tag_1.gql) `
6
+ query GetRemoteAccessByTargetIdAndTargetType(
7
+ $targetId: String!
8
+ $targetType: String!
9
+ ) {
10
+ getRemoteAccessByTargetIdAndTargetType(
11
+ targetId: $targetId
12
+ targetType: $targetType
13
+ ) {
14
+ id
15
+ name
16
+ description
17
+ targetId
18
+ targetType
19
+ type
20
+ status
21
+ }
22
+ }
23
+ `;
24
+ exports.GET_CONNECTION_INFO_FROM_REMOTE_ACCESS_BY_ID = (0, graphql_tag_1.gql) `
25
+ query GetConnectionInfoFromRemoteAccessById($remoteAccessId: String!) {
26
+ getConnectionInfoFromRemoteAccessById(remoteAccessId: $remoteAccessId) {
27
+ url
28
+ host
29
+ port
30
+ username
31
+ password
32
+ }
33
+ }
34
+ `;
@@ -0,0 +1,2 @@
1
+ export declare const SHARE_RESOURCE: import("graphql").DocumentNode;
2
+ export declare const REMOVE_SHARE_PARTY: import("graphql").DocumentNode;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REMOVE_SHARE_PARTY = exports.SHARE_RESOURCE = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.SHARE_RESOURCE = (0, graphql_tag_1.gql) `
6
+ mutation ShareResource(
7
+ $partnerId: String!
8
+ $createModel: ShareResourceRequest!
9
+ ) {
10
+ shareResource(partnerId: $partnerId, createModel: $createModel) {
11
+ id
12
+ name
13
+ resourceId
14
+ org
15
+ resourceType
16
+ oauthSharePermissions {
17
+ role
18
+ partyId
19
+ partyName
20
+ permission
21
+ }
22
+ description
23
+ createdStamp
24
+ updatedStamp
25
+ updatedBy
26
+ createdBy
27
+ }
28
+ }
29
+ `;
30
+ exports.REMOVE_SHARE_PARTY = (0, graphql_tag_1.gql) `
31
+ mutation RemoveShareParty(
32
+ $partnerId: String!
33
+ $orgId: String!
34
+ $resourceType: String!
35
+ $resourceId: String!
36
+ $sharePartyId: String!
37
+ $ownerId: String!
38
+ ) {
39
+ removeShareParty(
40
+ partnerId: $partnerId
41
+ ownerId: $ownerId
42
+ orgId: $orgId
43
+ resourceType: $resourceType
44
+ resourceId: $resourceId
45
+ sharePartyId: $sharePartyId
46
+ ) {
47
+ id
48
+ name
49
+ resourceId
50
+ org
51
+ resourceType
52
+ oauthSharePermissions {
53
+ role
54
+ partyId
55
+ partyName
56
+ permission
57
+ }
58
+ description
59
+ createdStamp
60
+ updatedStamp
61
+ updatedBy
62
+ createdBy
63
+ }
64
+ }
65
+ `;
@@ -0,0 +1 @@
1
+ export declare const GET_SHARED_USER_BY_SERVICE: import("graphql").DocumentNode;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_SHARED_USER_BY_SERVICE = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.GET_SHARED_USER_BY_SERVICE = (0, graphql_tag_1.gql) `
6
+ query GetSharedUserByService($resourceType: String!, $resourceId: String!) {
7
+ getSharedUserByService(
8
+ resourceType: $resourceType
9
+ resourceId: $resourceId
10
+ ) {
11
+ role
12
+ partyId
13
+ partyName
14
+ permission
15
+ status
16
+ }
17
+ }
18
+ `;
@@ -0,0 +1,27 @@
1
+ import { DocumentNode } from 'graphql';
2
+ export declare const CREATE_BUCKET: (fields?: string[]) => DocumentNode;
3
+ export declare const RENAME_BUCKET: (fields?: string[]) => DocumentNode;
4
+ export declare const DELETE_BUCKET: (fields?: string[]) => DocumentNode;
5
+ export declare const CREATE_FOLDER: (fields?: string[]) => DocumentNode;
6
+ export declare const REMOVE_FOLDER: (fields?: string[]) => DocumentNode;
7
+ export declare const UPLOAD_FOLDER: (fields?: string[]) => DocumentNode;
8
+ export declare const UPDATE_ACL_PERMISSION_FILE: (fields?: string[]) => DocumentNode;
9
+ export declare const RENAME_FILE: (fields?: string[]) => DocumentNode;
10
+ export declare const SHARE_LINK_FILE_BY_TIME_DYNAMIC: (fields?: string[]) => DocumentNode;
11
+ export declare const SHARE_LINK_FILE_BY_TIME: DocumentNode;
12
+ export declare const COPY_FILE: (fields?: string[]) => DocumentNode;
13
+ export declare const MOVE_FILE: (fields?: string[]) => DocumentNode;
14
+ export declare const REMOVE_FILE: (fields?: string[]) => DocumentNode;
15
+ export declare const UPDATE_ACL_PERMISSION_BUCKET: (fields?: string[]) => DocumentNode;
16
+ export declare const UPDATE_BUCKET_VERSIONING: (fields?: string[]) => DocumentNode;
17
+ export declare const RESTORE_FILE_TRASH: (fields?: string[]) => DocumentNode;
18
+ export declare const REMOVE_FILE_TRASH: (fields?: string[]) => DocumentNode;
19
+ export declare const RESTORE_FILE_OTHER_VERSION: (fields?: string[]) => DocumentNode;
20
+ export declare const REMOVE_FILE_OTHER_VERSION: (fields?: string[]) => DocumentNode;
21
+ export declare const ADD_S3_DOMAIN: (fields?: string[]) => DocumentNode;
22
+ export declare const REMOVE_S3_DOMAIN: (fields?: string[]) => DocumentNode;
23
+ export declare const ADD_CORS_BUCKET: (fields?: string[]) => DocumentNode;
24
+ export declare const UPDATE_CORS_BUCKET: (fields?: string[]) => DocumentNode;
25
+ export declare const REMOVE_CORS_BUCKET: (fields?: string[]) => DocumentNode;
26
+ export declare const RESET_KEY: (fields?: string[]) => DocumentNode;
27
+ export declare const ACTION_SYNC_USER_FROM_S3: (fields?: string[]) => DocumentNode;