box-node-sdk 4.5.0 → 4.6.0

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 (177) hide show
  1. package/lib/sdk-gen/client.d.ts +3 -1
  2. package/lib/sdk-gen/client.d.ts.map +1 -1
  3. package/lib/sdk-gen/client.js +5 -0
  4. package/lib/sdk-gen/client.js.map +1 -1
  5. package/lib/sdk-gen/managers/hubDocument.d.ts +133 -0
  6. package/lib/sdk-gen/managers/hubDocument.d.ts.map +1 -0
  7. package/lib/sdk-gen/managers/hubDocument.js +162 -0
  8. package/lib/sdk-gen/managers/hubDocument.js.map +1 -0
  9. package/lib/sdk-gen/managers/hubItems.d.ts +7 -0
  10. package/lib/sdk-gen/managers/hubItems.d.ts.map +1 -1
  11. package/lib/sdk-gen/managers/hubItems.js +1 -0
  12. package/lib/sdk-gen/managers/hubItems.js.map +1 -1
  13. package/lib/sdk-gen/managers/index.d.ts +1 -0
  14. package/lib/sdk-gen/managers/index.d.ts.map +1 -1
  15. package/lib/sdk-gen/managers/index.js +1 -0
  16. package/lib/sdk-gen/managers/index.js.map +1 -1
  17. package/lib/sdk-gen/managers/search.d.ts +1 -1
  18. package/lib/sdk-gen/managers/search.d.ts.map +1 -1
  19. package/lib/sdk-gen/managers/search.js +1 -1
  20. package/lib/sdk-gen/managers/search.js.map +1 -1
  21. package/lib/sdk-gen/managers/trashedItems.d.ts +2 -0
  22. package/lib/sdk-gen/managers/trashedItems.d.ts.map +1 -1
  23. package/lib/sdk-gen/managers/trashedItems.js +2 -0
  24. package/lib/sdk-gen/managers/trashedItems.js.map +1 -1
  25. package/lib/sdk-gen/networking/version.d.ts +1 -1
  26. package/lib/sdk-gen/networking/version.js +1 -1
  27. package/lib/sdk-gen/schemas/aiAgentBasicTextToolBase.d.ts +1 -1
  28. package/lib/sdk-gen/schemas/aiAgentBasicTextToolBase.d.ts.map +1 -1
  29. package/lib/sdk-gen/schemas/aiAgentSpreadsheetTool.d.ts +1 -1
  30. package/lib/sdk-gen/schemas/aiAgentSpreadsheetTool.d.ts.map +1 -1
  31. package/lib/sdk-gen/schemas/aiExtractStructured.d.ts +3 -0
  32. package/lib/sdk-gen/schemas/aiExtractStructured.d.ts.map +1 -1
  33. package/lib/sdk-gen/schemas/aiExtractStructured.js +9 -0
  34. package/lib/sdk-gen/schemas/aiExtractStructured.js.map +1 -1
  35. package/lib/sdk-gen/schemas/aiExtractStructuredResponse.d.ts +5 -0
  36. package/lib/sdk-gen/schemas/aiExtractStructuredResponse.d.ts.map +1 -1
  37. package/lib/sdk-gen/schemas/aiExtractStructuredResponse.js +24 -0
  38. package/lib/sdk-gen/schemas/aiExtractStructuredResponse.js.map +1 -1
  39. package/lib/sdk-gen/schemas/index.d.ts +5 -5
  40. package/lib/sdk-gen/schemas/index.d.ts.map +1 -1
  41. package/lib/sdk-gen/schemas/index.js +5 -5
  42. package/lib/sdk-gen/schemas/index.js.map +1 -1
  43. package/lib/sdk-gen/schemas/legalHoldPolicyAssignedItem.d.ts +13 -5
  44. package/lib/sdk-gen/schemas/legalHoldPolicyAssignedItem.d.ts.map +1 -1
  45. package/lib/sdk-gen/schemas/legalHoldPolicyAssignedItem.js +47 -24
  46. package/lib/sdk-gen/schemas/legalHoldPolicyAssignedItem.js.map +1 -1
  47. package/lib/sdk-gen/schemas/legalHoldPolicyAssignment.d.ts.map +1 -1
  48. package/lib/sdk-gen/schemas/legalHoldPolicyAssignment.js.map +1 -1
  49. package/lib/sdk-gen/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.d.ts +20 -0
  50. package/lib/sdk-gen/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.d.ts.map +1 -0
  51. package/lib/sdk-gen/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.js +105 -0
  52. package/lib/sdk-gen/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.js.map +1 -0
  53. package/lib/sdk-gen/schemas/v2025R0/hubDividerBlockV2025R0.d.ts +17 -0
  54. package/lib/sdk-gen/schemas/v2025R0/hubDividerBlockV2025R0.d.ts.map +1 -0
  55. package/lib/sdk-gen/schemas/v2025R0/hubDividerBlockV2025R0.js +87 -0
  56. package/lib/sdk-gen/schemas/v2025R0/hubDividerBlockV2025R0.js.map +1 -0
  57. package/lib/sdk-gen/schemas/v2025R0/hubDocumentBlockEntryV2025R0.d.ts +10 -0
  58. package/lib/sdk-gen/schemas/v2025R0/hubDocumentBlockEntryV2025R0.d.ts.map +1 -0
  59. package/lib/sdk-gen/schemas/v2025R0/hubDocumentBlockEntryV2025R0.js +60 -0
  60. package/lib/sdk-gen/schemas/v2025R0/hubDocumentBlockEntryV2025R0.js.map +1 -0
  61. package/lib/sdk-gen/schemas/v2025R0/hubDocumentBlockV2025R0.d.ts +13 -0
  62. package/lib/sdk-gen/schemas/v2025R0/hubDocumentBlockV2025R0.d.ts.map +1 -0
  63. package/lib/sdk-gen/schemas/v2025R0/hubDocumentBlockV2025R0.js +36 -0
  64. package/lib/sdk-gen/schemas/v2025R0/hubDocumentBlockV2025R0.js.map +1 -0
  65. package/lib/sdk-gen/schemas/v2025R0/hubDocumentBlocksV2025R0.d.ts +45 -0
  66. package/lib/sdk-gen/schemas/v2025R0/hubDocumentBlocksV2025R0.d.ts.map +1 -0
  67. package/lib/sdk-gen/schemas/v2025R0/hubDocumentBlocksV2025R0.js +162 -0
  68. package/lib/sdk-gen/schemas/v2025R0/hubDocumentBlocksV2025R0.js.map +1 -0
  69. package/lib/sdk-gen/schemas/v2025R0/hubDocumentPageV2025R0.d.ts +19 -0
  70. package/lib/sdk-gen/schemas/v2025R0/hubDocumentPageV2025R0.d.ts.map +1 -0
  71. package/lib/sdk-gen/schemas/v2025R0/hubDocumentPageV2025R0.js +68 -0
  72. package/lib/sdk-gen/schemas/v2025R0/hubDocumentPageV2025R0.js.map +1 -0
  73. package/lib/sdk-gen/schemas/v2025R0/hubDocumentPagesV2025R0.d.ts +45 -0
  74. package/lib/sdk-gen/schemas/v2025R0/hubDocumentPagesV2025R0.d.ts.map +1 -0
  75. package/lib/sdk-gen/schemas/v2025R0/hubDocumentPagesV2025R0.js +162 -0
  76. package/lib/sdk-gen/schemas/v2025R0/hubDocumentPagesV2025R0.js.map +1 -0
  77. package/lib/sdk-gen/schemas/v2025R0/hubItemListBlockV2025R0.d.ts +17 -0
  78. package/lib/sdk-gen/schemas/v2025R0/hubItemListBlockV2025R0.d.ts.map +1 -0
  79. package/lib/sdk-gen/schemas/v2025R0/hubItemListBlockV2025R0.js +87 -0
  80. package/lib/sdk-gen/schemas/v2025R0/hubItemListBlockV2025R0.js.map +1 -0
  81. package/lib/sdk-gen/schemas/v2025R0/hubItemOperationResultV2025R0.d.ts +3 -0
  82. package/lib/sdk-gen/schemas/v2025R0/hubItemOperationResultV2025R0.d.ts.map +1 -1
  83. package/lib/sdk-gen/schemas/v2025R0/hubItemOperationResultV2025R0.js +8 -0
  84. package/lib/sdk-gen/schemas/v2025R0/hubItemOperationResultV2025R0.js.map +1 -1
  85. package/lib/sdk-gen/schemas/v2025R0/hubItemOperationV2025R0.d.ts +3 -0
  86. package/lib/sdk-gen/schemas/v2025R0/hubItemOperationV2025R0.d.ts.map +1 -1
  87. package/lib/sdk-gen/schemas/v2025R0/hubItemOperationV2025R0.js +12 -1
  88. package/lib/sdk-gen/schemas/v2025R0/hubItemOperationV2025R0.js.map +1 -1
  89. package/lib/sdk-gen/schemas/v2025R0/hubParagraphTextBlockV2025R0.d.ts +20 -0
  90. package/lib/sdk-gen/schemas/v2025R0/hubParagraphTextBlockV2025R0.d.ts.map +1 -0
  91. package/lib/sdk-gen/schemas/v2025R0/hubParagraphTextBlockV2025R0.js +105 -0
  92. package/lib/sdk-gen/schemas/v2025R0/hubParagraphTextBlockV2025R0.js.map +1 -0
  93. package/lib/sdk-gen/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.d.ts +20 -0
  94. package/lib/sdk-gen/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.d.ts.map +1 -0
  95. package/lib/sdk-gen/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.js +105 -0
  96. package/lib/sdk-gen/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.js.map +1 -0
  97. package/lib/sdk-gen/schemas/v2025R0/index.d.ts +10 -0
  98. package/lib/sdk-gen/schemas/v2025R0/index.d.ts.map +1 -1
  99. package/lib/sdk-gen/schemas/v2025R0/index.js +10 -0
  100. package/lib/sdk-gen/schemas/v2025R0/index.js.map +1 -1
  101. package/lib-esm/bundle.js +655 -10
  102. package/lib-esm/bundle.js.map +1 -1
  103. package/lib-esm/sdk-gen/client.d.ts +3 -1
  104. package/lib-esm/sdk-gen/client.js +6 -0
  105. package/lib-esm/sdk-gen/client.js.map +1 -1
  106. package/lib-esm/sdk-gen/managers/hubDocument.d.ts +132 -0
  107. package/lib-esm/sdk-gen/managers/hubDocument.js +162 -0
  108. package/lib-esm/sdk-gen/managers/hubDocument.js.map +1 -0
  109. package/lib-esm/sdk-gen/managers/hubItems.d.ts +7 -0
  110. package/lib-esm/sdk-gen/managers/hubItems.js +1 -0
  111. package/lib-esm/sdk-gen/managers/hubItems.js.map +1 -1
  112. package/lib-esm/sdk-gen/managers/index.d.ts +1 -0
  113. package/lib-esm/sdk-gen/managers/index.js +1 -0
  114. package/lib-esm/sdk-gen/managers/index.js.map +1 -1
  115. package/lib-esm/sdk-gen/managers/search.d.ts +1 -1
  116. package/lib-esm/sdk-gen/managers/search.js +1 -1
  117. package/lib-esm/sdk-gen/managers/search.js.map +1 -1
  118. package/lib-esm/sdk-gen/managers/trashedItems.d.ts +2 -0
  119. package/lib-esm/sdk-gen/managers/trashedItems.js +2 -0
  120. package/lib-esm/sdk-gen/managers/trashedItems.js.map +1 -1
  121. package/lib-esm/sdk-gen/networking/version.d.ts +1 -1
  122. package/lib-esm/sdk-gen/networking/version.js +1 -1
  123. package/lib-esm/sdk-gen/schemas/aiAgentBasicTextToolBase.d.ts +1 -1
  124. package/lib-esm/sdk-gen/schemas/aiAgentSpreadsheetTool.d.ts +1 -1
  125. package/lib-esm/sdk-gen/schemas/aiExtractStructured.d.ts +3 -0
  126. package/lib-esm/sdk-gen/schemas/aiExtractStructured.js +9 -0
  127. package/lib-esm/sdk-gen/schemas/aiExtractStructured.js.map +1 -1
  128. package/lib-esm/sdk-gen/schemas/aiExtractStructuredResponse.d.ts +5 -0
  129. package/lib-esm/sdk-gen/schemas/aiExtractStructuredResponse.js +24 -0
  130. package/lib-esm/sdk-gen/schemas/aiExtractStructuredResponse.js.map +1 -1
  131. package/lib-esm/sdk-gen/schemas/index.d.ts +5 -5
  132. package/lib-esm/sdk-gen/schemas/index.js +5 -5
  133. package/lib-esm/sdk-gen/schemas/index.js.map +1 -1
  134. package/lib-esm/sdk-gen/schemas/legalHoldPolicyAssignedItem.d.ts +13 -5
  135. package/lib-esm/sdk-gen/schemas/legalHoldPolicyAssignedItem.js +47 -24
  136. package/lib-esm/sdk-gen/schemas/legalHoldPolicyAssignedItem.js.map +1 -1
  137. package/lib-esm/sdk-gen/schemas/legalHoldPolicyAssignment.js.map +1 -1
  138. package/lib-esm/sdk-gen/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.d.ts +19 -0
  139. package/lib-esm/sdk-gen/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.js +114 -0
  140. package/lib-esm/sdk-gen/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.js.map +1 -0
  141. package/lib-esm/sdk-gen/schemas/v2025R0/hubDividerBlockV2025R0.d.ts +16 -0
  142. package/lib-esm/sdk-gen/schemas/v2025R0/hubDividerBlockV2025R0.js +93 -0
  143. package/lib-esm/sdk-gen/schemas/v2025R0/hubDividerBlockV2025R0.js.map +1 -0
  144. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentBlockEntryV2025R0.d.ts +9 -0
  145. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentBlockEntryV2025R0.js +60 -0
  146. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentBlockEntryV2025R0.js.map +1 -0
  147. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentBlockV2025R0.d.ts +12 -0
  148. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentBlockV2025R0.js +36 -0
  149. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentBlockV2025R0.js.map +1 -0
  150. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentBlocksV2025R0.d.ts +44 -0
  151. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentBlocksV2025R0.js +174 -0
  152. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentBlocksV2025R0.js.map +1 -0
  153. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentPageV2025R0.d.ts +18 -0
  154. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentPageV2025R0.js +68 -0
  155. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentPageV2025R0.js.map +1 -0
  156. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentPagesV2025R0.d.ts +44 -0
  157. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentPagesV2025R0.js +174 -0
  158. package/lib-esm/sdk-gen/schemas/v2025R0/hubDocumentPagesV2025R0.js.map +1 -0
  159. package/lib-esm/sdk-gen/schemas/v2025R0/hubItemListBlockV2025R0.d.ts +16 -0
  160. package/lib-esm/sdk-gen/schemas/v2025R0/hubItemListBlockV2025R0.js +93 -0
  161. package/lib-esm/sdk-gen/schemas/v2025R0/hubItemListBlockV2025R0.js.map +1 -0
  162. package/lib-esm/sdk-gen/schemas/v2025R0/hubItemOperationResultV2025R0.d.ts +3 -0
  163. package/lib-esm/sdk-gen/schemas/v2025R0/hubItemOperationResultV2025R0.js +8 -0
  164. package/lib-esm/sdk-gen/schemas/v2025R0/hubItemOperationResultV2025R0.js.map +1 -1
  165. package/lib-esm/sdk-gen/schemas/v2025R0/hubItemOperationV2025R0.d.ts +3 -0
  166. package/lib-esm/sdk-gen/schemas/v2025R0/hubItemOperationV2025R0.js +12 -1
  167. package/lib-esm/sdk-gen/schemas/v2025R0/hubItemOperationV2025R0.js.map +1 -1
  168. package/lib-esm/sdk-gen/schemas/v2025R0/hubParagraphTextBlockV2025R0.d.ts +19 -0
  169. package/lib-esm/sdk-gen/schemas/v2025R0/hubParagraphTextBlockV2025R0.js +114 -0
  170. package/lib-esm/sdk-gen/schemas/v2025R0/hubParagraphTextBlockV2025R0.js.map +1 -0
  171. package/lib-esm/sdk-gen/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.d.ts +19 -0
  172. package/lib-esm/sdk-gen/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.js +114 -0
  173. package/lib-esm/sdk-gen/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.js.map +1 -0
  174. package/lib-esm/sdk-gen/schemas/v2025R0/index.d.ts +10 -0
  175. package/lib-esm/sdk-gen/schemas/v2025R0/index.js +10 -0
  176. package/lib-esm/sdk-gen/schemas/v2025R0/index.js.map +1 -1
  177. package/package.json +1 -1
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HubDividerBlockV2025R0 = void 0;
4
+ exports.serializeHubDividerBlockV2025R0TypeField = serializeHubDividerBlockV2025R0TypeField;
5
+ exports.deserializeHubDividerBlockV2025R0TypeField = deserializeHubDividerBlockV2025R0TypeField;
6
+ exports.serializeHubDividerBlockV2025R0 = serializeHubDividerBlockV2025R0;
7
+ exports.deserializeHubDividerBlockV2025R0 = deserializeHubDividerBlockV2025R0;
8
+ const hubDocumentBlockV2025R0_1 = require("./hubDocumentBlockV2025R0");
9
+ const errors_1 = require("../../box/errors");
10
+ const json_1 = require("../../serialization/json");
11
+ const json_2 = require("../../serialization/json");
12
+ class HubDividerBlockV2025R0 {
13
+ id;
14
+ parentId;
15
+ rawData;
16
+ /**
17
+ * The type of this block. The value is always `divider`. */
18
+ type = 'divider';
19
+ constructor(fields) {
20
+ if (fields.id !== undefined) {
21
+ this.id = fields.id;
22
+ }
23
+ if (fields.parentId !== undefined) {
24
+ this.parentId = fields.parentId;
25
+ }
26
+ if (fields.rawData !== undefined) {
27
+ this.rawData = fields.rawData;
28
+ }
29
+ if (fields.type !== undefined) {
30
+ this.type = fields.type;
31
+ }
32
+ }
33
+ }
34
+ exports.HubDividerBlockV2025R0 = HubDividerBlockV2025R0;
35
+ function serializeHubDividerBlockV2025R0TypeField(val) {
36
+ return val;
37
+ }
38
+ function deserializeHubDividerBlockV2025R0TypeField(val) {
39
+ if (val == 'divider') {
40
+ return val;
41
+ }
42
+ throw new errors_1.BoxSdkError({
43
+ message: "Can't deserialize HubDividerBlockV2025R0TypeField",
44
+ });
45
+ }
46
+ function serializeHubDividerBlockV2025R0(val) {
47
+ const base = (0, hubDocumentBlockV2025R0_1.serializeHubDocumentBlockV2025R0)(val);
48
+ if (!(0, json_2.sdIsMap)(base)) {
49
+ throw new errors_1.BoxSdkError({
50
+ message: 'Expecting a map for "HubDividerBlockV2025R0"',
51
+ });
52
+ }
53
+ return {
54
+ ...base,
55
+ ...{ ['type']: serializeHubDividerBlockV2025R0TypeField(val.type) },
56
+ };
57
+ }
58
+ function deserializeHubDividerBlockV2025R0(val) {
59
+ if (!(0, json_2.sdIsMap)(val)) {
60
+ throw new errors_1.BoxSdkError({
61
+ message: 'Expecting a map for "HubDividerBlockV2025R0"',
62
+ });
63
+ }
64
+ if (val.type == void 0) {
65
+ throw new errors_1.BoxSdkError({
66
+ message: 'Expecting "type" of type "HubDividerBlockV2025R0" to be defined',
67
+ });
68
+ }
69
+ const type = deserializeHubDividerBlockV2025R0TypeField(val.type);
70
+ if (val.id == void 0) {
71
+ throw new errors_1.BoxSdkError({
72
+ message: 'Expecting "id" of type "HubDividerBlockV2025R0" to be defined',
73
+ });
74
+ }
75
+ if (!(0, json_1.sdIsString)(val.id)) {
76
+ throw new errors_1.BoxSdkError({
77
+ message: 'Expecting string for "id" of type "HubDividerBlockV2025R0"',
78
+ });
79
+ }
80
+ const id = val.id;
81
+ if (!(val.parent_id == void 0) && !(0, json_1.sdIsString)(val.parent_id)) {
82
+ throw new errors_1.BoxSdkError({
83
+ message: 'Expecting string for "parent_id" of type "HubDividerBlockV2025R0"',
84
+ });
85
+ }
86
+ const parentId = val.parent_id == void 0 ? void 0 : val.parent_id;
87
+ return {
88
+ type: type,
89
+ id: id,
90
+ parentId: parentId,
91
+ };
92
+ }
93
+ //# sourceMappingURL=hubDividerBlockV2025R0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hubDividerBlockV2025R0.js","sourceRoot":"","sources":["../../../../src/sdk-gen/schemas/v2025R0/hubDividerBlockV2025R0.ts"],"names":[],"mappings":";;;AAsCA,4FAIC;AACD,gGASC;AACD,0EAaC;AACD,8EAwCC;AA3GD,uEAA6E;AAG7E,6CAA+C;AAK/C,mDAAsD;AAEtD,mDAAmD;AAEnD,MAAa,sBAAsB;IACxB,EAAE,CAAU;IACZ,QAAQ,CAAiB;IACzB,OAAO,CAAkB;IAClC;gEAC4D;IACnD,IAAI,GACX,SAA4C,CAAC;IAC/C,YACE,MAC+C;QAE/C,IAAI,MAAM,CAAC,EAAE,KAAK,SAAS,EAAE,CAAC;YAC5B,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;QACtB,CAAC;QACD,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YAClC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAClC,CAAC;QACD,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACjC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAChC,CAAC;QACD,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC9B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QAC1B,CAAC;IACH,CAAC;CACF;AAzBD,wDAyBC;AACD,SAAgB,wCAAwC,CACtD,GAAoC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QACxB,MAAM,IAAI,oBAAW,CAAC;YACpB,OAAO,EAAE,4DAA4D;SACtE,CAAC,CAAC;IACL,CAAC;IACD,MAAM,EAAE,GAAW,GAAG,CAAC,EAAE,CAAC;IAC1B,IAAI,CAAC,CAAC,GAAG,CAAC,SAAS,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC,IAAA,iBAAU,EAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;QAC7D,MAAM,IAAI,oBAAW,CAAC;YACpB,OAAO,EACL,mEAAmE;SACtE,CAAC,CAAC;IACL,CAAC;IACD,MAAM,QAAQ,GACZ,GAAG,CAAC,SAAS,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC;IACnD,OAAO;QACL,IAAI,EAAE,IAAI;QACV,EAAE,EAAE,EAAE;QACN,QAAQ,EAAE,QAAQ;KACc,CAAC;AACrC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { HubParagraphTextBlockV2025R0 } from './hubParagraphTextBlockV2025R0';
2
+ import { HubSectionTitleTextBlockV2025R0 } from './hubSectionTitleTextBlockV2025R0';
3
+ import { HubCalloutBoxTextBlockV2025R0 } from './hubCalloutBoxTextBlockV2025R0';
4
+ import { HubItemListBlockV2025R0 } from './hubItemListBlockV2025R0';
5
+ import { HubDividerBlockV2025R0 } from './hubDividerBlockV2025R0';
6
+ import { SerializedData } from '../../serialization/json';
7
+ export type HubDocumentBlockEntryV2025R0 = HubParagraphTextBlockV2025R0 | HubSectionTitleTextBlockV2025R0 | HubCalloutBoxTextBlockV2025R0 | HubItemListBlockV2025R0 | HubDividerBlockV2025R0;
8
+ export declare function serializeHubDocumentBlockEntryV2025R0(val: any): SerializedData;
9
+ export declare function deserializeHubDocumentBlockEntryV2025R0(val: SerializedData): HubDocumentBlockEntryV2025R0;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serializeHubDocumentBlockEntryV2025R0 = serializeHubDocumentBlockEntryV2025R0;
4
+ exports.deserializeHubDocumentBlockEntryV2025R0 = deserializeHubDocumentBlockEntryV2025R0;
5
+ const hubParagraphTextBlockV2025R0_1 = require("./hubParagraphTextBlockV2025R0");
6
+ const hubParagraphTextBlockV2025R0_2 = require("./hubParagraphTextBlockV2025R0");
7
+ const hubSectionTitleTextBlockV2025R0_1 = require("./hubSectionTitleTextBlockV2025R0");
8
+ const hubSectionTitleTextBlockV2025R0_2 = require("./hubSectionTitleTextBlockV2025R0");
9
+ const hubCalloutBoxTextBlockV2025R0_1 = require("./hubCalloutBoxTextBlockV2025R0");
10
+ const hubCalloutBoxTextBlockV2025R0_2 = require("./hubCalloutBoxTextBlockV2025R0");
11
+ const hubItemListBlockV2025R0_1 = require("./hubItemListBlockV2025R0");
12
+ const hubItemListBlockV2025R0_2 = require("./hubItemListBlockV2025R0");
13
+ const hubDividerBlockV2025R0_1 = require("./hubDividerBlockV2025R0");
14
+ const hubDividerBlockV2025R0_2 = require("./hubDividerBlockV2025R0");
15
+ const errors_1 = require("../../box/errors");
16
+ const json_1 = require("../../serialization/json");
17
+ function serializeHubDocumentBlockEntryV2025R0(val) {
18
+ if (val.type == 'paragraph') {
19
+ return (0, hubParagraphTextBlockV2025R0_1.serializeHubParagraphTextBlockV2025R0)(val);
20
+ }
21
+ if (val.type == 'section_title') {
22
+ return (0, hubSectionTitleTextBlockV2025R0_1.serializeHubSectionTitleTextBlockV2025R0)(val);
23
+ }
24
+ if (val.type == 'callout_box') {
25
+ return (0, hubCalloutBoxTextBlockV2025R0_1.serializeHubCalloutBoxTextBlockV2025R0)(val);
26
+ }
27
+ if (val.type == 'item_list') {
28
+ return (0, hubItemListBlockV2025R0_1.serializeHubItemListBlockV2025R0)(val);
29
+ }
30
+ if (val.type == 'divider') {
31
+ return (0, hubDividerBlockV2025R0_1.serializeHubDividerBlockV2025R0)(val);
32
+ }
33
+ throw new errors_1.BoxSdkError({ message: 'unknown type' });
34
+ }
35
+ function deserializeHubDocumentBlockEntryV2025R0(val) {
36
+ if (!(0, json_1.sdIsMap)(val)) {
37
+ throw new errors_1.BoxSdkError({
38
+ message: 'Expecting a map for "HubDocumentBlockEntryV2025R0"',
39
+ });
40
+ }
41
+ if (val.type == 'paragraph') {
42
+ return (0, hubParagraphTextBlockV2025R0_2.deserializeHubParagraphTextBlockV2025R0)(val);
43
+ }
44
+ if (val.type == 'section_title') {
45
+ return (0, hubSectionTitleTextBlockV2025R0_2.deserializeHubSectionTitleTextBlockV2025R0)(val);
46
+ }
47
+ if (val.type == 'callout_box') {
48
+ return (0, hubCalloutBoxTextBlockV2025R0_2.deserializeHubCalloutBoxTextBlockV2025R0)(val);
49
+ }
50
+ if (val.type == 'item_list') {
51
+ return (0, hubItemListBlockV2025R0_2.deserializeHubItemListBlockV2025R0)(val);
52
+ }
53
+ if (val.type == 'divider') {
54
+ return (0, hubDividerBlockV2025R0_2.deserializeHubDividerBlockV2025R0)(val);
55
+ }
56
+ throw new errors_1.BoxSdkError({
57
+ message: "Can't deserialize HubDocumentBlockEntryV2025R0",
58
+ });
59
+ }
60
+ //# sourceMappingURL=hubDocumentBlockEntryV2025R0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hubDocumentBlockEntryV2025R0.js","sourceRoot":"","sources":["../../../../src/sdk-gen/schemas/v2025R0/hubDocumentBlockEntryV2025R0.ts"],"names":[],"mappings":";;AA6BA,sFAmBC;AACD,0FA0BC;AA3ED,iFAAuF;AACvF,iFAAyF;AACzF,uFAA6F;AAC7F,uFAA+F;AAC/F,mFAAyF;AACzF,mFAA2F;AAC3F,uEAA6E;AAC7E,uEAA+E;AAC/E,qEAA2E;AAC3E,qEAA6E;AAM7E,6CAA+C;AAO/C,mDAAmD;AAOnD,SAAgB,qCAAqC,CACnD,GAAQ;IAER,IAAI,GAAG,CAAC,IAAI,IAAI,WAAW,EAAE,CAAC;QAC5B,OAAO,IAAA,oEAAqC,EAAC,GAAG,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AI,GAAG,CAAC,IAAI,IAAI,SAAS,EAAE,CAAC;QAC1B,OAAO,IAAA,0DAAiC,EAAC,GAAG,CAAC,CAAC;IAChD,CAAC;IACD,MAAM,IAAI,oBAAW,CAAC;QACpB,OAAO,EAAE,gDAAgD;KAC1D,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { SerializedData } from '../../serialization/json';
2
+ export interface HubDocumentBlockV2025R0 {
3
+ /**
4
+ * The unique identifier for this block. */
5
+ readonly id: string;
6
+ /**
7
+ * The unique identifier of the parent block. Null for direct children of the page. */
8
+ readonly parentId?: string | null;
9
+ readonly rawData?: SerializedData;
10
+ }
11
+ export declare function serializeHubDocumentBlockV2025R0(val: HubDocumentBlockV2025R0): SerializedData;
12
+ export declare function deserializeHubDocumentBlockV2025R0(val: SerializedData): HubDocumentBlockV2025R0;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serializeHubDocumentBlockV2025R0 = serializeHubDocumentBlockV2025R0;
4
+ exports.deserializeHubDocumentBlockV2025R0 = deserializeHubDocumentBlockV2025R0;
5
+ const errors_1 = require("../../box/errors");
6
+ const json_1 = require("../../serialization/json");
7
+ const json_2 = require("../../serialization/json");
8
+ function serializeHubDocumentBlockV2025R0(val) {
9
+ return { ['id']: val.id, ['parent_id']: val.parentId };
10
+ }
11
+ function deserializeHubDocumentBlockV2025R0(val) {
12
+ if (!(0, json_2.sdIsMap)(val)) {
13
+ throw new errors_1.BoxSdkError({
14
+ message: 'Expecting a map for "HubDocumentBlockV2025R0"',
15
+ });
16
+ }
17
+ if (val.id == void 0) {
18
+ throw new errors_1.BoxSdkError({
19
+ message: 'Expecting "id" of type "HubDocumentBlockV2025R0" to be defined',
20
+ });
21
+ }
22
+ if (!(0, json_1.sdIsString)(val.id)) {
23
+ throw new errors_1.BoxSdkError({
24
+ message: 'Expecting string for "id" of type "HubDocumentBlockV2025R0"',
25
+ });
26
+ }
27
+ const id = val.id;
28
+ if (!(val.parent_id == void 0) && !(0, json_1.sdIsString)(val.parent_id)) {
29
+ throw new errors_1.BoxSdkError({
30
+ message: 'Expecting string for "parent_id" of type "HubDocumentBlockV2025R0"',
31
+ });
32
+ }
33
+ const parentId = val.parent_id == void 0 ? void 0 : val.parent_id;
34
+ return { id: id, parentId: parentId };
35
+ }
36
+ //# sourceMappingURL=hubDocumentBlockV2025R0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hubDocumentBlockV2025R0.js","sourceRoot":"","sources":["../../../../src/sdk-gen/schemas/v2025R0/hubDocumentBlockV2025R0.ts"],"names":[],"mappings":";;AAiBA,4EAIC;AACD,gFA4BC;AAlDD,6CAA+C;AAK/C,mDAAsD;AAEtD,mDAAmD;AAUnD,SAAgB,gCAAgC,CAC9C,GAA4B;IAE5B,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC;AACzD,CAAC;AACD,SAAgB,kCAAkC,CAChD,GAAmB;IAEnB,IAAI,CAAC,IAAA,cAAO,EAAC,GAAG,CAAC,EAAE,CAAC;QAClB,MAAM,IAAI,oBAAW,CAAC;YACpB,OAAO,EAAE,+CAA+C;SACzD,CAAC,CAAC;IACL,CAAC;IACD,IAAI,GAAG,CAAC,EAAE,IAAI,KAAK,CAAC,EAAE,CAAC;QACrB,MAAM,IAAI,oBAAW,CAAC;YACpB,OAAO,EAAE,gEAAgE;SAC1E,CAAC,CAAC;IACL,CAAC;IACD,IAAI,CAAC,IAAA,iBAAU,EAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,oBAAW,CAAC;YACpB,OAAO,EAAE,6DAA6D;SACvE,CAAC,CAAC;IACL,CAAC;IACD,MAAM,EAAE,GAAW,GAAG,CAAC,EAAE,CAAC;IAC1B,IAAI,CAAC,CAAC,GAAG,CAAC,SAAS,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC,IAAA,iBAAU,EAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;QAC7D,MAAM,IAAI,oBAAW,CAAC;YACpB,OAAO,EACL,oEAAoE;SACvE,CAAC,CAAC;IACL,CAAC;IACD,MAAM,QAAQ,GACZ,GAAG,CAAC,SAAS,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC;IACnD,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAoC,CAAC;AAC1E,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { HubDocumentBlockEntryV2025R0 } from './hubDocumentBlockEntryV2025R0';
2
+ import { SerializedData } from '../../serialization/json';
3
+ export type HubDocumentBlocksV2025R0TypeField = 'document_blocks';
4
+ export declare class HubDocumentBlocksV2025R0 {
5
+ /**
6
+ * Ordered list of blocks. */
7
+ readonly entries: readonly HubDocumentBlockEntryV2025R0[];
8
+ /**
9
+ * The value will always be `document_blocks`. */
10
+ readonly type: HubDocumentBlocksV2025R0TypeField;
11
+ /**
12
+ * The limit that was used for these entries. This will be the same as the
13
+ * `limit` query parameter unless that value exceeded the maximum value
14
+ * allowed. The maximum value varies by API. */
15
+ readonly limit?: number;
16
+ /**
17
+ * The marker for the start of the next page of results. */
18
+ readonly nextMarker?: string | null;
19
+ readonly rawData?: SerializedData;
20
+ constructor(fields: Omit<HubDocumentBlocksV2025R0, 'type'> & Partial<Pick<HubDocumentBlocksV2025R0, 'type'>>);
21
+ }
22
+ export interface HubDocumentBlocksV2025R0Input {
23
+ /**
24
+ * Ordered list of blocks. */
25
+ readonly entries: readonly HubDocumentBlockEntryV2025R0[];
26
+ /**
27
+ * The value will always be `document_blocks`. */
28
+ readonly type?: HubDocumentBlocksV2025R0TypeField;
29
+ /**
30
+ * The limit that was used for these entries. This will be the same as the
31
+ * `limit` query parameter unless that value exceeded the maximum value
32
+ * allowed. The maximum value varies by API. */
33
+ readonly limit?: number;
34
+ /**
35
+ * The marker for the start of the next page of results. */
36
+ readonly nextMarker?: string | null;
37
+ readonly rawData?: SerializedData;
38
+ }
39
+ export declare function serializeHubDocumentBlocksV2025R0TypeField(val: HubDocumentBlocksV2025R0TypeField): SerializedData;
40
+ export declare function deserializeHubDocumentBlocksV2025R0TypeField(val: SerializedData): HubDocumentBlocksV2025R0TypeField;
41
+ export declare function serializeHubDocumentBlocksV2025R0(val: HubDocumentBlocksV2025R0): SerializedData;
42
+ export declare function deserializeHubDocumentBlocksV2025R0(val: SerializedData): HubDocumentBlocksV2025R0;
43
+ export declare function serializeHubDocumentBlocksV2025R0Input(val: HubDocumentBlocksV2025R0Input): SerializedData;
44
+ export declare function deserializeHubDocumentBlocksV2025R0Input(val: SerializedData): HubDocumentBlocksV2025R0Input;
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HubDocumentBlocksV2025R0 = void 0;
4
+ exports.serializeHubDocumentBlocksV2025R0TypeField = serializeHubDocumentBlocksV2025R0TypeField;
5
+ exports.deserializeHubDocumentBlocksV2025R0TypeField = deserializeHubDocumentBlocksV2025R0TypeField;
6
+ exports.serializeHubDocumentBlocksV2025R0 = serializeHubDocumentBlocksV2025R0;
7
+ exports.deserializeHubDocumentBlocksV2025R0 = deserializeHubDocumentBlocksV2025R0;
8
+ exports.serializeHubDocumentBlocksV2025R0Input = serializeHubDocumentBlocksV2025R0Input;
9
+ exports.deserializeHubDocumentBlocksV2025R0Input = deserializeHubDocumentBlocksV2025R0Input;
10
+ const hubDocumentBlockEntryV2025R0_1 = require("./hubDocumentBlockEntryV2025R0");
11
+ const hubDocumentBlockEntryV2025R0_2 = require("./hubDocumentBlockEntryV2025R0");
12
+ const errors_1 = require("../../box/errors");
13
+ const json_1 = require("../../serialization/json");
14
+ const json_2 = require("../../serialization/json");
15
+ const json_3 = require("../../serialization/json");
16
+ const json_4 = require("../../serialization/json");
17
+ class HubDocumentBlocksV2025R0 {
18
+ /**
19
+ * Ordered list of blocks. */
20
+ entries;
21
+ /**
22
+ * The value will always be `document_blocks`. */
23
+ type = 'document_blocks';
24
+ /**
25
+ * The limit that was used for these entries. This will be the same as the
26
+ * `limit` query parameter unless that value exceeded the maximum value
27
+ * allowed. The maximum value varies by API. */
28
+ limit;
29
+ /**
30
+ * The marker for the start of the next page of results. */
31
+ nextMarker;
32
+ rawData;
33
+ constructor(fields) {
34
+ if (fields.entries !== undefined) {
35
+ this.entries = fields.entries;
36
+ }
37
+ if (fields.type !== undefined) {
38
+ this.type = fields.type;
39
+ }
40
+ if (fields.limit !== undefined) {
41
+ this.limit = fields.limit;
42
+ }
43
+ if (fields.nextMarker !== undefined) {
44
+ this.nextMarker = fields.nextMarker;
45
+ }
46
+ if (fields.rawData !== undefined) {
47
+ this.rawData = fields.rawData;
48
+ }
49
+ }
50
+ }
51
+ exports.HubDocumentBlocksV2025R0 = HubDocumentBlocksV2025R0;
52
+ function serializeHubDocumentBlocksV2025R0TypeField(val) {
53
+ return val;
54
+ }
55
+ function deserializeHubDocumentBlocksV2025R0TypeField(val) {
56
+ if (val == 'document_blocks') {
57
+ return val;
58
+ }
59
+ throw new errors_1.BoxSdkError({
60
+ message: "Can't deserialize HubDocumentBlocksV2025R0TypeField",
61
+ });
62
+ }
63
+ function serializeHubDocumentBlocksV2025R0(val) {
64
+ return {
65
+ ['entries']: val.entries.map(function (item) {
66
+ return (0, hubDocumentBlockEntryV2025R0_1.serializeHubDocumentBlockEntryV2025R0)(item);
67
+ }),
68
+ ['type']: serializeHubDocumentBlocksV2025R0TypeField(val.type),
69
+ ['limit']: val.limit,
70
+ ['next_marker']: val.nextMarker,
71
+ };
72
+ }
73
+ function deserializeHubDocumentBlocksV2025R0(val) {
74
+ if (!(0, json_4.sdIsMap)(val)) {
75
+ throw new errors_1.BoxSdkError({
76
+ message: 'Expecting a map for "HubDocumentBlocksV2025R0"',
77
+ });
78
+ }
79
+ if (val.entries == void 0) {
80
+ throw new errors_1.BoxSdkError({
81
+ message: 'Expecting "entries" of type "HubDocumentBlocksV2025R0" to be defined',
82
+ });
83
+ }
84
+ if (!(0, json_3.sdIsList)(val.entries)) {
85
+ throw new errors_1.BoxSdkError({
86
+ message: 'Expecting array for "entries" of type "HubDocumentBlocksV2025R0"',
87
+ });
88
+ }
89
+ const entries = (0, json_3.sdIsList)(val.entries)
90
+ ? val.entries.map(function (itm) {
91
+ return (0, hubDocumentBlockEntryV2025R0_2.deserializeHubDocumentBlockEntryV2025R0)(itm);
92
+ })
93
+ : [];
94
+ if (val.type == void 0) {
95
+ throw new errors_1.BoxSdkError({
96
+ message: 'Expecting "type" of type "HubDocumentBlocksV2025R0" to be defined',
97
+ });
98
+ }
99
+ const type = deserializeHubDocumentBlocksV2025R0TypeField(val.type);
100
+ if (!(val.limit == void 0) && !(0, json_1.sdIsNumber)(val.limit)) {
101
+ throw new errors_1.BoxSdkError({
102
+ message: 'Expecting number for "limit" of type "HubDocumentBlocksV2025R0"',
103
+ });
104
+ }
105
+ const limit = val.limit == void 0 ? void 0 : val.limit;
106
+ if (!(val.next_marker == void 0) && !(0, json_2.sdIsString)(val.next_marker)) {
107
+ throw new errors_1.BoxSdkError({
108
+ message: 'Expecting string for "next_marker" of type "HubDocumentBlocksV2025R0"',
109
+ });
110
+ }
111
+ const nextMarker = val.next_marker == void 0 ? void 0 : val.next_marker;
112
+ return {
113
+ entries: entries,
114
+ type: type,
115
+ limit: limit,
116
+ nextMarker: nextMarker,
117
+ };
118
+ }
119
+ function serializeHubDocumentBlocksV2025R0Input(val) {
120
+ return {
121
+ ['entries']: val.entries.map(function (item) {
122
+ return (0, hubDocumentBlockEntryV2025R0_1.serializeHubDocumentBlockEntryV2025R0)(item);
123
+ }),
124
+ ['type']: val.type == void 0
125
+ ? val.type
126
+ : serializeHubDocumentBlocksV2025R0TypeField(val.type),
127
+ ['limit']: val.limit,
128
+ ['next_marker']: val.nextMarker,
129
+ };
130
+ }
131
+ function deserializeHubDocumentBlocksV2025R0Input(val) {
132
+ if (!(0, json_4.sdIsMap)(val)) {
133
+ throw new errors_1.BoxSdkError({
134
+ message: 'Expecting a map for "HubDocumentBlocksV2025R0Input"',
135
+ });
136
+ }
137
+ if (val.entries == void 0) {
138
+ throw new errors_1.BoxSdkError({
139
+ message: 'Expecting "entries" of type "HubDocumentBlocksV2025R0Input" to be defined',
140
+ });
141
+ }
142
+ if (!(0, json_3.sdIsList)(val.entries)) {
143
+ throw new errors_1.BoxSdkError({
144
+ message: 'Expecting array for "entries" of type "HubDocumentBlocksV2025R0Input"',
145
+ });
146
+ }
147
+ const entries = (0, json_3.sdIsList)(val.entries)
148
+ ? val.entries.map(function (itm) {
149
+ return (0, hubDocumentBlockEntryV2025R0_2.deserializeHubDocumentBlockEntryV2025R0)(itm);
150
+ })
151
+ : [];
152
+ const type = val.type == void 0
153
+ ? void 0
154
+ : deserializeHubDocumentBlocksV2025R0TypeField(val.type);
155
+ if (!(val.limit == void 0) && !(0, json_1.sdIsNumber)(val.limit)) {
156
+ throw new errors_1.BoxSdkError({
157
+ message: 'Expecting number for "limit" of type "HubDocumentBlocksV2025R0Input"',
158
+ });
159
+ }
160
+ const limit = val.limit == void 0 ? void 0 : val.limit;
161
+ if (!(val.next_marker == void 0) && !(0, json_2.sdIsString)(val.next_marker)) {
162
+ throw new errors_1.BoxSdkError({
163
+ message: 'Expecting string for "next_marker" of type "HubDocumentBlocksV2025R0Input"',
164
+ });
165
+ }
166
+ const nextMarker = val.next_marker == void 0 ? void 0 : val.next_marker;
167
+ return {
168
+ entries: entries,
169
+ type: type,
170
+ limit: limit,
171
+ nextMarker: nextMarker,
172
+ };
173
+ }
174
+ //# sourceMappingURL=hubDocumentBlocksV2025R0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hubDocumentBlocksV2025R0.js","sourceRoot":"","sources":["../../../../src/sdk-gen/schemas/v2025R0/hubDocumentBlocksV2025R0.ts"],"names":[],"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EAAE,CAAC;QACrD,MAAM,IAAI,oBAAW,CAAC;YACpB,OAAO,EACL,sEAAsE;SACzE,CAAC,CAAC;IACL,CAAC;IACD,MAAM,KAAK,GAAuB,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;IAC3E,IAAI,CAAC,CAAC,GAAG,CAAC,WAAW,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC,IAAA,iBAAU,EAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;QACjE,MAAM,IAAI,oBAAW,CAAC;YACpB,OAAO,EACL,4EAA4E;SAC/E,CAAC,CAAC;IACL,CAAC;IACD,MAAM,UAAU,GACd,GAAG,CAAC,WAAW,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC;IACvD,OAAO;QACL,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,KAAK;QACZ,UAAU,EAAE,UAAU;KACiB,CAAC;AAC5C,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { SerializedData } from '../../serialization/json';
2
+ export interface HubDocumentPageV2025R0 {
3
+ /**
4
+ * The unique identifier for this page. */
5
+ readonly id: string;
6
+ /**
7
+ * The type of this resource. The value is always `page`. */
8
+ readonly type: string;
9
+ /**
10
+ * The unique identifier of the parent page. Null for root-level pages. */
11
+ readonly parentId?: string | null;
12
+ /**
13
+ * The title text of the page. Includes rich text formatting. */
14
+ readonly titleFragment: string;
15
+ readonly rawData?: SerializedData;
16
+ }
17
+ export declare function serializeHubDocumentPageV2025R0(val: HubDocumentPageV2025R0): SerializedData;
18
+ export declare function deserializeHubDocumentPageV2025R0(val: SerializedData): HubDocumentPageV2025R0;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serializeHubDocumentPageV2025R0 = serializeHubDocumentPageV2025R0;
4
+ exports.deserializeHubDocumentPageV2025R0 = deserializeHubDocumentPageV2025R0;
5
+ const errors_1 = require("../../box/errors");
6
+ const json_1 = require("../../serialization/json");
7
+ const json_2 = require("../../serialization/json");
8
+ function serializeHubDocumentPageV2025R0(val) {
9
+ return {
10
+ ['id']: val.id,
11
+ ['type']: val.type,
12
+ ['parent_id']: val.parentId,
13
+ ['title_fragment']: val.titleFragment,
14
+ };
15
+ }
16
+ function deserializeHubDocumentPageV2025R0(val) {
17
+ if (!(0, json_2.sdIsMap)(val)) {
18
+ throw new errors_1.BoxSdkError({
19
+ message: 'Expecting a map for "HubDocumentPageV2025R0"',
20
+ });
21
+ }
22
+ if (val.id == void 0) {
23
+ throw new errors_1.BoxSdkError({
24
+ message: 'Expecting "id" of type "HubDocumentPageV2025R0" to be defined',
25
+ });
26
+ }
27
+ if (!(0, json_1.sdIsString)(val.id)) {
28
+ throw new errors_1.BoxSdkError({
29
+ message: 'Expecting string for "id" of type "HubDocumentPageV2025R0"',
30
+ });
31
+ }
32
+ const id = val.id;
33
+ if (val.type == void 0) {
34
+ throw new errors_1.BoxSdkError({
35
+ message: 'Expecting "type" of type "HubDocumentPageV2025R0" to be defined',
36
+ });
37
+ }
38
+ if (!(0, json_1.sdIsString)(val.type)) {
39
+ throw new errors_1.BoxSdkError({
40
+ message: 'Expecting string for "type" of type "HubDocumentPageV2025R0"',
41
+ });
42
+ }
43
+ const type = val.type;
44
+ if (!(val.parent_id == void 0) && !(0, json_1.sdIsString)(val.parent_id)) {
45
+ throw new errors_1.BoxSdkError({
46
+ message: 'Expecting string for "parent_id" of type "HubDocumentPageV2025R0"',
47
+ });
48
+ }
49
+ const parentId = val.parent_id == void 0 ? void 0 : val.parent_id;
50
+ if (val.title_fragment == void 0) {
51
+ throw new errors_1.BoxSdkError({
52
+ message: 'Expecting "title_fragment" of type "HubDocumentPageV2025R0" to be defined',
53
+ });
54
+ }
55
+ if (!(0, json_1.sdIsString)(val.title_fragment)) {
56
+ throw new errors_1.BoxSdkError({
57
+ message: 'Expecting string for "title_fragment" of type "HubDocumentPageV2025R0"',
58
+ });
59
+ }
60
+ const titleFragment = val.title_fragment;
61
+ return {
62
+ id: id,
63
+ type: type,
64
+ parentId: parentId,
65
+ titleFragment: titleFragment,
66
+ };
67
+ }
68
+ //# sourceMappingURL=hubDocumentPageV2025R0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hubDocumentPageV2025R0.js","sourceRoot":"","sources":["../../../../src/sdk-gen/schemas/v2025R0/hubDocumentPageV2025R0.ts"],"names":[],"mappings":";;AAuBA,0EASC;AACD,8EA0DC;AA3FD,6CAA+C;AAK/C,mDAAsD;AAEtD,mDAAmD;AAgBnD,SAAgB,+BAA+B,CAC7C,GAA2B;IAE3B,OAAO;QACL,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE;QACd,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,IAAI;QAClB,CAAC,WAAW,CAAC,EAAE,GAAG,CAAC,QAAQ;QAC3B,CAAC,gBAAgB,CAAC,EAAE,GAAG,CAAC,aAAa;KACtC,CAAC;AACJ,CAAC;AACD,SAAgB,iCAAiC,CAC/C,GAAmB;IAEnB,IAAI,CAAC,IAAA,cAAO,EAAC,GAAG,CAAC,EAAE,CAAC;QAClB,MAAM,IAAI,oBAAW,CAAC;YACpB,OAAO,EAAE,8CAA8C;SACxD,CAAC,CAAC;IACL,CAAC;IACD,IAAI,GAAG,CAAC,EAAE,IAAI,KAAK,CAAC,EAAE,CAAC;QACrB,MAAM,IAAI,oBAAW,CAAC;YACpB,OAAO,EAAE,+DAA+D;SACzE,CAAC,CAAC;IACL,CAAC;IACD,IAAI,CAAC,IAAA,iBAAU,EAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,oBAAW,CAAC;YACpB,OAAO,EAAE,4DAA4D;SACtE,CAAC,CAAC;IACL,CAAC;IACD,MAAM,EAAE,G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1,44 @@
1
+ import { HubDocumentPageV2025R0 } from './hubDocumentPageV2025R0';
2
+ import { SerializedData } from '../../serialization/json';
3
+ export type HubDocumentPagesV2025R0TypeField = 'document_pages';
4
+ export declare class HubDocumentPagesV2025R0 {
5
+ /**
6
+ * Ordered list of pages. */
7
+ readonly entries: readonly HubDocumentPageV2025R0[];
8
+ /**
9
+ * The value will always be `document_pages`. */
10
+ readonly type: HubDocumentPagesV2025R0TypeField;
11
+ /**
12
+ * The limit that was used for these entries. This will be the same as the
13
+ * `limit` query parameter unless that value exceeded the maximum value
14
+ * allowed. The maximum value varies by API. */
15
+ readonly limit?: number;
16
+ /**
17
+ * The marker for the start of the next page of results. */
18
+ readonly nextMarker?: string | null;
19
+ readonly rawData?: SerializedData;
20
+ constructor(fields: Omit<HubDocumentPagesV2025R0, 'type'> & Partial<Pick<HubDocumentPagesV2025R0, 'type'>>);
21
+ }
22
+ export interface HubDocumentPagesV2025R0Input {
23
+ /**
24
+ * Ordered list of pages. */
25
+ readonly entries: readonly HubDocumentPageV2025R0[];
26
+ /**
27
+ * The value will always be `document_pages`. */
28
+ readonly type?: HubDocumentPagesV2025R0TypeField;
29
+ /**
30
+ * The limit that was used for these entries. This will be the same as the
31
+ * `limit` query parameter unless that value exceeded the maximum value
32
+ * allowed. The maximum value varies by API. */
33
+ readonly limit?: number;
34
+ /**
35
+ * The marker for the start of the next page of results. */
36
+ readonly nextMarker?: string | null;
37
+ readonly rawData?: SerializedData;
38
+ }
39
+ export declare function serializeHubDocumentPagesV2025R0TypeField(val: HubDocumentPagesV2025R0TypeField): SerializedData;
40
+ export declare function deserializeHubDocumentPagesV2025R0TypeField(val: SerializedData): HubDocumentPagesV2025R0TypeField;
41
+ export declare function serializeHubDocumentPagesV2025R0(val: HubDocumentPagesV2025R0): SerializedData;
42
+ export declare function deserializeHubDocumentPagesV2025R0(val: SerializedData): HubDocumentPagesV2025R0;
43
+ export declare function serializeHubDocumentPagesV2025R0Input(val: HubDocumentPagesV2025R0Input): SerializedData;
44
+ export declare function deserializeHubDocumentPagesV2025R0Input(val: SerializedData): HubDocumentPagesV2025R0Input;