@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,12 @@
1
+ export interface UpdateRemoteAccessDTO {
2
+ name: string;
3
+ description: string;
4
+ type: 'SSH' | 'RDP' | 'VNC' | 'KVM' | 'IPMI' | 'URI';
5
+ remoteAccessInfoInput: {
6
+ host: string;
7
+ url: string;
8
+ port: string;
9
+ username: string;
10
+ password: string;
11
+ };
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export interface FileInfoInput {
2
+ name: string;
3
+ relativePath: string;
4
+ size: number;
5
+ contentType: string;
6
+ }
7
+ export interface FileTrashInput {
8
+ key: string;
9
+ versionId: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export declare function buildFieldString(fields: (string | Record<string, any>)[], indent?: number): string;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildFieldString = void 0;
4
+ function buildFieldString(fields, indent = 6) {
5
+ const space = " ".repeat(indent);
6
+ return fields
7
+ .map((field) => {
8
+ if (typeof field === "string")
9
+ return `${space}${field}`;
10
+ const [key, value] = Object.entries(field)[0];
11
+ const nested = buildFieldString(value, indent + 2);
12
+ return `${space}${key} {\n${nested}\n${space}}`;
13
+ })
14
+ .join("\n");
15
+ }
16
+ exports.buildFieldString = buildFieldString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.6.2-truedoc.1",
3
+ "version": "4.6.3",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [
@@ -39,5 +39,6 @@
39
39
  "ts-jest": "^29.1.2",
40
40
  "typescript": "^5.4.5"
41
41
  },
42
- "description": ""
42
+ "description": "",
43
+ "packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
43
44
  }
@@ -1 +0,0 @@
1
- export declare const SEARCH_SERVICE: import("graphql").DocumentNode;
@@ -1,71 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SEARCH_SERVICE = void 0;
4
- const graphql_tag_1 = require("graphql-tag");
5
- exports.SEARCH_SERVICE = (0, graphql_tag_1.gql) `
6
- query SearchService($filter: CloudServiceFilterInput) {
7
- searchService(filter: $filter) {
8
- total
9
- offset
10
- maxResult
11
- resultList {
12
- supplierId
13
- serviceId
14
- partnerId
15
- serviceName
16
- type
17
- typeName
18
- status
19
- statusFulfillment
20
- ownerId
21
- startDate
22
- endDate
23
- serviceType
24
- urlPrivate
25
- urlPublic
26
- username
27
- password
28
- attrs
29
- description
30
- productGroupId
31
- orderId
32
- actionRequest {
33
- id
34
- name
35
- uri
36
- type
37
- }
38
- billingCycle {
39
- quantity
40
- unit
41
- }
42
- productConfiguration {
43
- productId
44
- productTitle
45
- productResources {
46
- name
47
- quantity
48
- unit
49
- productId
50
- giftProductId
51
- gift
52
- giftQuantity
53
- campaignId
54
- campaignActionId
55
- qualify
56
- idParent
57
- addQuantity
58
- defaultQuantity
59
- title
60
- price
61
- unitPrice
62
- totalResource
63
- unitGift
64
- giftDuration
65
- giftDurationUnit
66
- }
67
- }
68
- }
69
- }
70
- }
71
- `;
@@ -1,5 +0,0 @@
1
- import { Service } from "../serviceSDK";
2
- export declare class CloudServiceService extends Service {
3
- constructor(endpoint: string, orgId: string, storeId: string);
4
- searchService(data: any): Promise<any>;
5
- }