@code.store/arcxp-sdk-ts 2.0.1 → 2.0.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 (125) hide show
  1. package/dist/api/abstract-api.d.ts +19 -0
  2. package/dist/api/abstract-api.js +33 -0
  3. package/dist/api/abstract-api.js.map +1 -0
  4. package/dist/api/author/index.d.ts +5 -0
  5. package/dist/api/author/index.js +15 -0
  6. package/dist/api/author/index.js.map +1 -0
  7. package/dist/api/author/types.js +2 -0
  8. package/dist/api/author/types.js.map +1 -0
  9. package/dist/api/draft/index.d.ts +5 -0
  10. package/dist/api/draft/index.js +15 -0
  11. package/dist/api/draft/index.js.map +1 -0
  12. package/dist/api/draft/types.js +3 -0
  13. package/dist/api/draft/types.js.map +1 -0
  14. package/dist/api/error.d.ts +10 -0
  15. package/dist/api/error.js +24 -0
  16. package/dist/api/error.js.map +1 -0
  17. package/dist/api/identity/index.d.ts +6 -0
  18. package/dist/api/identity/index.js +15 -0
  19. package/dist/api/identity/index.js.map +1 -0
  20. package/dist/api/identity/types.d.ts +58 -0
  21. package/dist/api/identity/types.js +3 -0
  22. package/dist/api/identity/types.js.map +1 -0
  23. package/dist/api/ifx/index.d.ts +18 -0
  24. package/dist/api/ifx/index.js +56 -0
  25. package/dist/api/ifx/index.js.map +1 -0
  26. package/dist/api/ifx/types.d.ts +24 -0
  27. package/dist/api/ifx/types.js +3 -0
  28. package/dist/api/ifx/types.js.map +1 -0
  29. package/dist/api/index.d.ts +22 -0
  30. package/dist/api/index.js +42 -0
  31. package/dist/api/index.js.map +1 -0
  32. package/dist/api/migration-center/index.d.ts +10 -0
  33. package/dist/api/migration-center/index.js +34 -0
  34. package/dist/api/migration-center/index.js.map +1 -0
  35. package/dist/api/migration-center/types.d.ts +166 -0
  36. package/dist/api/migration-center/types.js +40 -0
  37. package/dist/api/migration-center/types.js.map +1 -0
  38. package/dist/api/sales/index.d.ts +6 -0
  39. package/dist/api/sales/index.js +25 -0
  40. package/dist/api/sales/index.js.map +1 -0
  41. package/dist/api/sales/types.d.ts +68 -0
  42. package/dist/api/sales/types.js +3 -0
  43. package/dist/api/sales/types.js.map +1 -0
  44. package/dist/api/site/index.d.ts +7 -0
  45. package/dist/api/site/index.js +19 -0
  46. package/dist/api/site/index.js.map +1 -0
  47. package/dist/api/site/types.js +3 -0
  48. package/dist/api/site/types.js.map +1 -0
  49. package/dist/api/websked/index.d.ts +6 -0
  50. package/dist/api/websked/index.js +15 -0
  51. package/dist/api/websked/index.js.map +1 -0
  52. package/dist/api/websked/types.d.ts +7 -0
  53. package/dist/api/websked/types.js +3 -0
  54. package/dist/api/websked/types.js.map +1 -0
  55. package/dist/api/ws.client.d.ts +17 -0
  56. package/dist/api/ws.client.js +67 -0
  57. package/dist/api/ws.client.js.map +1 -0
  58. package/dist/content-elements/index.d.ts +137 -0
  59. package/dist/content-elements/index.js +112 -0
  60. package/dist/content-elements/index.js.map +1 -0
  61. package/{src/index.ts → dist/index.d.ts} +2 -3
  62. package/dist/index.js +48 -0
  63. package/dist/index.js.map +1 -0
  64. package/dist/tests/api/basic.test.d.ts +1 -0
  65. package/dist/tests/api/basic.test.js +15 -0
  66. package/dist/tests/api/basic.test.js.map +1 -0
  67. package/dist/types/author.d.ts +1511 -0
  68. package/dist/types/author.js +9 -0
  69. package/dist/types/author.js.map +1 -0
  70. package/dist/types/index.js +30 -0
  71. package/dist/types/index.js.map +1 -0
  72. package/dist/types/section.d.ts +80 -0
  73. package/dist/types/section.js +3 -0
  74. package/dist/types/section.js.map +1 -0
  75. package/dist/types/story.d.ts +1865 -0
  76. package/dist/types/story.js +9 -0
  77. package/dist/types/story.js.map +1 -0
  78. package/dist/utils/cache.d.ts +21 -0
  79. package/dist/utils/cache.js +63 -0
  80. package/dist/utils/cache.js.map +1 -0
  81. package/dist/utils/decorator.d.ts +2 -0
  82. package/dist/utils/decorator.js +21 -0
  83. package/dist/utils/decorator.js.map +1 -0
  84. package/dist/utils/duration.d.ts +7 -0
  85. package/dist/utils/duration.js +21 -0
  86. package/dist/utils/duration.js.map +1 -0
  87. package/dist/utils/index.d.ts +6 -0
  88. package/dist/utils/index.js +52 -0
  89. package/dist/utils/index.js.map +1 -0
  90. package/package.json +6 -2
  91. package/.eslintrc.js +0 -26
  92. package/.github/workflows/build-test-lint.yml +0 -41
  93. package/.prettierrc +0 -7
  94. package/src/api/abstract-api.ts +0 -42
  95. package/src/api/author/index.ts +0 -13
  96. package/src/api/draft/index.ts +0 -12
  97. package/src/api/error.ts +0 -30
  98. package/src/api/identity/index.ts +0 -14
  99. package/src/api/identity/types.ts +0 -61
  100. package/src/api/ifx/index.ts +0 -64
  101. package/src/api/ifx/types.ts +0 -27
  102. package/src/api/index.ts +0 -37
  103. package/src/api/migration-center/index.ts +0 -47
  104. package/src/api/migration-center/types.ts +0 -173
  105. package/src/api/sales/index.ts +0 -22
  106. package/src/api/sales/types.ts +0 -73
  107. package/src/api/site/index.ts +0 -20
  108. package/src/api/websked/index.ts +0 -13
  109. package/src/api/websked/types.ts +0 -7
  110. package/src/api/ws.client.ts +0 -73
  111. package/src/content-elements/index.ts +0 -113
  112. package/src/tests/api/basic.test.ts +0 -15
  113. package/src/types/author.ts +0 -1537
  114. package/src/types/section.ts +0 -55
  115. package/src/types/story.ts +0 -1905
  116. package/src/utils/cache.ts +0 -63
  117. package/src/utils/decorator.ts +0 -20
  118. package/src/utils/duration.ts +0 -17
  119. package/src/utils/index.ts +0 -51
  120. package/tsconfig.json +0 -72
  121. package/vite.config.ts +0 -10
  122. /package/{src/api/author/types.ts → dist/api/author/types.d.ts} +0 -0
  123. /package/{src/api/draft/types.ts → dist/api/draft/types.d.ts} +0 -0
  124. /package/{src/api/site/types.ts → dist/api/site/types.d.ts} +0 -0
  125. /package/{src/types/index.ts → dist/types/index.d.ts} +0 -0
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * This file was automatically generated by json-schema-to-typescript.
5
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
6
+ * and run json-schema-to-typescript to regenerate this file.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=author.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"author.js","sourceRoot":"","sources":["../../src/types/author.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB;;;;GAIG"}
@@ -0,0 +1,30 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Section = exports.Story = exports.Author = void 0;
27
+ exports.Author = __importStar(require("./author"));
28
+ exports.Story = __importStar(require("./story"));
29
+ exports.Section = __importStar(require("./section"));
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAmC;AACnC,iDAAiC;AACjC,qDAAqC"}
@@ -0,0 +1,80 @@
1
+ export type SectionReference = {
2
+ type: 'reference';
3
+ referent: {
4
+ id: string;
5
+ website: string;
6
+ type: 'section';
7
+ };
8
+ };
9
+ export type Section = {
10
+ _id: string;
11
+ site?: {
12
+ site_url: null;
13
+ site_keywords: null;
14
+ site_description: string;
15
+ site_tagline: null;
16
+ pagebuilder_path_for_native_apps: null;
17
+ site_about: null;
18
+ site_title: string;
19
+ section_collection: string;
20
+ };
21
+ social?: {
22
+ twitter: null;
23
+ rss: null;
24
+ facebook: null;
25
+ instagram: null;
26
+ };
27
+ navigation?: {
28
+ nav_title: string;
29
+ };
30
+ site_topper?: {
31
+ site_logo_image: null;
32
+ };
33
+ _admin?: {
34
+ alias_ids: string[];
35
+ };
36
+ _website?: string;
37
+ name: string;
38
+ order?: any;
39
+ parent?: {
40
+ default?: string;
41
+ footer?: null | string;
42
+ header?: string;
43
+ };
44
+ ancestors?: {
45
+ default: [];
46
+ footer: [];
47
+ header: [];
48
+ };
49
+ inactive?: false;
50
+ node_type?: 'section';
51
+ };
52
+ export type SetSection = {
53
+ _id: string;
54
+ website: string;
55
+ name: string;
56
+ parent: {
57
+ default: string;
58
+ footer?: null | string;
59
+ header: string;
60
+ };
61
+ navigation?: {
62
+ nav_title: string;
63
+ };
64
+ _admin?: {
65
+ alias_ids: string[];
66
+ };
67
+ ancestors?: string[];
68
+ order?: any;
69
+ inactive?: false;
70
+ site?: Partial<{
71
+ site_url: null;
72
+ site_keywords: null;
73
+ site_description: string;
74
+ site_tagline: null;
75
+ pagebuilder_path_for_native_apps: null;
76
+ site_about: null;
77
+ site_title: string;
78
+ section_collection: string;
79
+ }>;
80
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section.js","sourceRoot":"","sources":["../../src/types/section.ts"],"names":[],"mappings":""}