@flexprice/sdk 2.0.12 → 2.0.14

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 (211) hide show
  1. package/README.md +78 -0
  2. package/docs/sdk/models/dto-create-customer-request.md +0 -1
  3. package/docs/sdk/models/dto-customer-response.md +1 -0
  4. package/docs/sdk/models/dto-invoice-response.md +1 -0
  5. package/docs/sdk/models/{dto-create-entity-integration-mapping-request.md → dto-link-integration-mapping-request.md} +4 -4
  6. package/docs/sdk/models/dto-link-integration-mapping-response.md +15 -0
  7. package/docs/sdk/models/dto-update-customer-request.md +0 -1
  8. package/docs/sdk/models/invoice-status.md +1 -1
  9. package/docs/sdk/models/schedule-draft-finalization-response.md +16 -0
  10. package/docs/sdk/models/scheduled-task-interval.md +1 -1
  11. package/docs/sdks/integrations/README.md +18 -235
  12. package/docs/sdks/scheduledtasks/README.md +73 -2
  13. package/esm/funcs/coupons-create-coupon.d.ts +2 -0
  14. package/esm/funcs/coupons-create-coupon.d.ts.map +1 -1
  15. package/esm/funcs/coupons-create-coupon.js +3 -1
  16. package/esm/funcs/coupons-create-coupon.js.map +1 -1
  17. package/esm/funcs/coupons-delete-coupon.d.ts +2 -0
  18. package/esm/funcs/coupons-delete-coupon.d.ts.map +1 -1
  19. package/esm/funcs/coupons-delete-coupon.js +3 -1
  20. package/esm/funcs/coupons-delete-coupon.js.map +1 -1
  21. package/esm/funcs/coupons-update-coupon.d.ts +2 -0
  22. package/esm/funcs/coupons-update-coupon.d.ts.map +1 -1
  23. package/esm/funcs/coupons-update-coupon.js +3 -1
  24. package/esm/funcs/coupons-update-coupon.js.map +1 -1
  25. package/esm/funcs/credit-notes-create-credit-note.d.ts +2 -0
  26. package/esm/funcs/credit-notes-create-credit-note.d.ts.map +1 -1
  27. package/esm/funcs/credit-notes-create-credit-note.js +3 -1
  28. package/esm/funcs/credit-notes-create-credit-note.js.map +1 -1
  29. package/esm/funcs/credit-notes-process-credit-note.d.ts +2 -0
  30. package/esm/funcs/credit-notes-process-credit-note.d.ts.map +1 -1
  31. package/esm/funcs/credit-notes-process-credit-note.js +3 -1
  32. package/esm/funcs/credit-notes-process-credit-note.js.map +1 -1
  33. package/esm/funcs/credit-notes-void-credit-note.d.ts +2 -0
  34. package/esm/funcs/credit-notes-void-credit-note.d.ts.map +1 -1
  35. package/esm/funcs/credit-notes-void-credit-note.js +3 -1
  36. package/esm/funcs/credit-notes-void-credit-note.js.map +1 -1
  37. package/esm/funcs/{integrations-get-integration.d.ts → integrations-link-integration-mapping.d.ts} +4 -4
  38. package/esm/funcs/integrations-link-integration-mapping.d.ts.map +1 -0
  39. package/esm/funcs/{entity-integration-mappings-create-entity-integration-mapping.js → integrations-link-integration-mapping.js} +9 -9
  40. package/esm/funcs/integrations-link-integration-mapping.js.map +1 -0
  41. package/esm/funcs/scheduled-tasks-schedule-draft-finalization.d.ts +17 -0
  42. package/esm/funcs/scheduled-tasks-schedule-draft-finalization.d.ts.map +1 -0
  43. package/esm/funcs/{integrations-list-linked-integrations.js → scheduled-tasks-schedule-draft-finalization.js} +9 -9
  44. package/esm/funcs/scheduled-tasks-schedule-draft-finalization.js.map +1 -0
  45. package/esm/lib/config.d.ts +3 -3
  46. package/esm/lib/config.js +3 -3
  47. package/esm/lib/config.js.map +1 -1
  48. package/esm/lib/security.d.ts +1 -1
  49. package/esm/lib/security.d.ts.map +1 -1
  50. package/esm/lib/security.js +19 -8
  51. package/esm/lib/security.js.map +1 -1
  52. package/esm/sdk/integrations.d.ts +3 -24
  53. package/esm/sdk/integrations.d.ts.map +1 -1
  54. package/esm/sdk/integrations.js +5 -35
  55. package/esm/sdk/integrations.js.map +1 -1
  56. package/esm/sdk/models/dto-create-customer-request.d.ts +0 -6
  57. package/esm/sdk/models/dto-create-customer-request.d.ts.map +1 -1
  58. package/esm/sdk/models/dto-create-customer-request.js +0 -3
  59. package/esm/sdk/models/dto-create-customer-request.js.map +1 -1
  60. package/esm/sdk/models/dto-customer-response.d.ts +2 -0
  61. package/esm/sdk/models/dto-customer-response.d.ts.map +1 -1
  62. package/esm/sdk/models/dto-customer-response.js +2 -0
  63. package/esm/sdk/models/dto-customer-response.js.map +1 -1
  64. package/esm/sdk/models/dto-invoice-response.d.ts +4 -0
  65. package/esm/sdk/models/dto-invoice-response.d.ts.map +1 -1
  66. package/esm/sdk/models/dto-invoice-response.js +2 -0
  67. package/esm/sdk/models/dto-invoice-response.js.map +1 -1
  68. package/esm/sdk/models/dto-link-integration-mapping-request.d.ts +25 -0
  69. package/esm/sdk/models/dto-link-integration-mapping-request.d.ts.map +1 -0
  70. package/esm/sdk/models/{dto-create-entity-integration-mapping-request.js → dto-link-integration-mapping-request.js} +4 -4
  71. package/esm/sdk/models/dto-link-integration-mapping-request.js.map +1 -0
  72. package/esm/sdk/models/dto-link-integration-mapping-response.d.ts +11 -0
  73. package/esm/sdk/models/dto-link-integration-mapping-response.d.ts.map +1 -0
  74. package/esm/sdk/models/dto-link-integration-mapping-response.js +15 -0
  75. package/esm/sdk/models/dto-link-integration-mapping-response.js.map +1 -0
  76. package/esm/sdk/models/dto-update-customer-request.d.ts +0 -6
  77. package/esm/sdk/models/dto-update-customer-request.d.ts.map +1 -1
  78. package/esm/sdk/models/dto-update-customer-request.js +0 -3
  79. package/esm/sdk/models/dto-update-customer-request.js.map +1 -1
  80. package/esm/sdk/models/index.d.ts +3 -8
  81. package/esm/sdk/models/index.d.ts.map +1 -1
  82. package/esm/sdk/models/index.js +3 -8
  83. package/esm/sdk/models/index.js.map +1 -1
  84. package/esm/sdk/models/invoice-status.d.ts +1 -0
  85. package/esm/sdk/models/invoice-status.d.ts.map +1 -1
  86. package/esm/sdk/models/invoice-status.js +1 -0
  87. package/esm/sdk/models/invoice-status.js.map +1 -1
  88. package/esm/sdk/models/schedule-draft-finalization-op.d.ts +11 -0
  89. package/esm/sdk/models/schedule-draft-finalization-op.d.ts.map +1 -0
  90. package/esm/sdk/models/schedule-draft-finalization-op.js +11 -0
  91. package/esm/sdk/models/schedule-draft-finalization-op.js.map +1 -0
  92. package/esm/sdk/models/scheduled-task-interval.d.ts +1 -0
  93. package/esm/sdk/models/scheduled-task-interval.d.ts.map +1 -1
  94. package/esm/sdk/models/scheduled-task-interval.js +1 -0
  95. package/esm/sdk/models/scheduled-task-interval.js.map +1 -1
  96. package/esm/sdk/models/secret-provider.d.ts +0 -2
  97. package/esm/sdk/models/secret-provider.d.ts.map +1 -1
  98. package/esm/sdk/models/secret-provider.js +0 -2
  99. package/esm/sdk/models/secret-provider.js.map +1 -1
  100. package/esm/sdk/scheduled-tasks.d.ts +7 -0
  101. package/esm/sdk/scheduled-tasks.d.ts.map +1 -1
  102. package/esm/sdk/scheduled-tasks.js +10 -0
  103. package/esm/sdk/scheduled-tasks.js.map +1 -1
  104. package/esm/sdk/sdk.d.ts +2 -5
  105. package/esm/sdk/sdk.d.ts.map +1 -1
  106. package/esm/sdk/sdk.js +4 -9
  107. package/esm/sdk/sdk.js.map +1 -1
  108. package/jsr.json +1 -1
  109. package/package.json +1 -1
  110. package/src/funcs/coupons-create-coupon.ts +3 -1
  111. package/src/funcs/coupons-delete-coupon.ts +3 -1
  112. package/src/funcs/coupons-update-coupon.ts +3 -1
  113. package/src/funcs/credit-notes-create-credit-note.ts +3 -1
  114. package/src/funcs/credit-notes-process-credit-note.ts +3 -1
  115. package/src/funcs/credit-notes-void-credit-note.ts +3 -1
  116. package/src/funcs/{entity-integration-mappings-create-entity-integration-mapping.ts → integrations-link-integration-mapping.ts} +14 -17
  117. package/src/funcs/{integrations-list-linked-integrations.ts → scheduled-tasks-schedule-draft-finalization.ts} +12 -11
  118. package/src/lib/config.ts +3 -3
  119. package/src/lib/security.ts +14 -2
  120. package/src/sdk/integrations.ts +8 -62
  121. package/src/sdk/models/dto-create-customer-request.ts +0 -16
  122. package/src/sdk/models/dto-customer-response.ts +8 -0
  123. package/src/sdk/models/dto-invoice-response.ts +6 -0
  124. package/src/sdk/models/dto-link-integration-mapping-request.ts +59 -0
  125. package/src/sdk/models/dto-link-integration-mapping-response.ts +35 -0
  126. package/src/sdk/models/dto-update-customer-request.ts +0 -16
  127. package/src/sdk/models/index.ts +3 -8
  128. package/src/sdk/models/invoice-status.ts +1 -0
  129. package/src/sdk/models/schedule-draft-finalization-op.ts +29 -0
  130. package/src/sdk/models/scheduled-task-interval.ts +1 -0
  131. package/src/sdk/models/secret-provider.ts +0 -5
  132. package/src/sdk/scheduled-tasks.ts +16 -0
  133. package/src/sdk/sdk.ts +5 -13
  134. package/docs/sdk/models/create-or-update-integration-request.md +0 -26
  135. package/docs/sdk/models/delete-entity-integration-mapping-request.md +0 -17
  136. package/docs/sdk/models/delete-integration-request.md +0 -17
  137. package/docs/sdk/models/dto-create-integration-request.md +0 -21
  138. package/docs/sdk/models/dto-integration-entity-mapping.md +0 -21
  139. package/docs/sdk/models/dto-linked-integrations-response.md +0 -15
  140. package/docs/sdk/models/get-integration-request.md +0 -17
  141. package/docs/sdk/models/provider.md +0 -17
  142. package/docs/sdks/entityintegrationmappings/README.md +0 -160
  143. package/esm/funcs/entity-integration-mappings-create-entity-integration-mapping.d.ts +0 -17
  144. package/esm/funcs/entity-integration-mappings-create-entity-integration-mapping.d.ts.map +0 -1
  145. package/esm/funcs/entity-integration-mappings-create-entity-integration-mapping.js.map +0 -1
  146. package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.d.ts +0 -17
  147. package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.d.ts.map +0 -1
  148. package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.js +0 -90
  149. package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.js.map +0 -1
  150. package/esm/funcs/integrations-create-or-update-integration.d.ts +0 -17
  151. package/esm/funcs/integrations-create-or-update-integration.d.ts.map +0 -1
  152. package/esm/funcs/integrations-create-or-update-integration.js +0 -92
  153. package/esm/funcs/integrations-create-or-update-integration.js.map +0 -1
  154. package/esm/funcs/integrations-delete-integration.d.ts +0 -17
  155. package/esm/funcs/integrations-delete-integration.d.ts.map +0 -1
  156. package/esm/funcs/integrations-delete-integration.js +0 -90
  157. package/esm/funcs/integrations-delete-integration.js.map +0 -1
  158. package/esm/funcs/integrations-get-integration.d.ts.map +0 -1
  159. package/esm/funcs/integrations-get-integration.js +0 -90
  160. package/esm/funcs/integrations-get-integration.js.map +0 -1
  161. package/esm/funcs/integrations-list-linked-integrations.d.ts +0 -17
  162. package/esm/funcs/integrations-list-linked-integrations.d.ts.map +0 -1
  163. package/esm/funcs/integrations-list-linked-integrations.js.map +0 -1
  164. package/esm/sdk/entity-integration-mappings.d.ts +0 -19
  165. package/esm/sdk/entity-integration-mappings.d.ts.map +0 -1
  166. package/esm/sdk/entity-integration-mappings.js +0 -28
  167. package/esm/sdk/entity-integration-mappings.js.map +0 -1
  168. package/esm/sdk/models/create-or-update-integration-op.d.ts +0 -21
  169. package/esm/sdk/models/create-or-update-integration-op.d.ts.map +0 -1
  170. package/esm/sdk/models/create-or-update-integration-op.js +0 -14
  171. package/esm/sdk/models/create-or-update-integration-op.js.map +0 -1
  172. package/esm/sdk/models/delete-entity-integration-mapping-op.d.ts +0 -15
  173. package/esm/sdk/models/delete-entity-integration-mapping-op.d.ts.map +0 -1
  174. package/esm/sdk/models/delete-entity-integration-mapping-op.js +0 -12
  175. package/esm/sdk/models/delete-entity-integration-mapping-op.js.map +0 -1
  176. package/esm/sdk/models/delete-integration-op.d.ts +0 -15
  177. package/esm/sdk/models/delete-integration-op.d.ts.map +0 -1
  178. package/esm/sdk/models/delete-integration-op.js +0 -12
  179. package/esm/sdk/models/delete-integration-op.js.map +0 -1
  180. package/esm/sdk/models/dto-create-entity-integration-mapping-request.d.ts +0 -25
  181. package/esm/sdk/models/dto-create-entity-integration-mapping-request.d.ts.map +0 -1
  182. package/esm/sdk/models/dto-create-entity-integration-mapping-request.js.map +0 -1
  183. package/esm/sdk/models/dto-create-integration-request.d.ts +0 -21
  184. package/esm/sdk/models/dto-create-integration-request.d.ts.map +0 -1
  185. package/esm/sdk/models/dto-create-integration-request.js +0 -15
  186. package/esm/sdk/models/dto-create-integration-request.js.map +0 -1
  187. package/esm/sdk/models/dto-integration-entity-mapping.d.ts +0 -38
  188. package/esm/sdk/models/dto-integration-entity-mapping.d.ts.map +0 -1
  189. package/esm/sdk/models/dto-integration-entity-mapping.js +0 -23
  190. package/esm/sdk/models/dto-integration-entity-mapping.js.map +0 -1
  191. package/esm/sdk/models/dto-linked-integrations-response.d.ts +0 -10
  192. package/esm/sdk/models/dto-linked-integrations-response.d.ts.map +0 -1
  193. package/esm/sdk/models/dto-linked-integrations-response.js +0 -14
  194. package/esm/sdk/models/dto-linked-integrations-response.js.map +0 -1
  195. package/esm/sdk/models/get-integration-op.d.ts +0 -15
  196. package/esm/sdk/models/get-integration-op.d.ts.map +0 -1
  197. package/esm/sdk/models/get-integration-op.js +0 -12
  198. package/esm/sdk/models/get-integration-op.js.map +0 -1
  199. package/src/funcs/entity-integration-mappings-delete-entity-integration-mapping.ts +0 -183
  200. package/src/funcs/integrations-create-or-update-integration.ts +0 -187
  201. package/src/funcs/integrations-delete-integration.ts +0 -179
  202. package/src/funcs/integrations-get-integration.ts +0 -181
  203. package/src/sdk/entity-integration-mappings.ts +0 -45
  204. package/src/sdk/models/create-or-update-integration-op.ts +0 -46
  205. package/src/sdk/models/delete-entity-integration-mapping-op.ts +0 -36
  206. package/src/sdk/models/delete-integration-op.ts +0 -33
  207. package/src/sdk/models/dto-create-entity-integration-mapping-request.ts +0 -61
  208. package/src/sdk/models/dto-create-integration-request.ts +0 -42
  209. package/src/sdk/models/dto-integration-entity-mapping.ts +0 -63
  210. package/src/sdk/models/dto-linked-integrations-response.ts +0 -31
  211. package/src/sdk/models/get-integration-op.ts +0 -33
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import {
10
+ DtoEntityIntegrationMappingResponse,
11
+ DtoEntityIntegrationMappingResponse$inboundSchema,
12
+ } from "./dto-entity-integration-mapping-response.js";
13
+ import { SDKValidationError } from "./sdk-validation-error.js";
14
+
15
+ export type DtoLinkIntegrationMappingResponse = {
16
+ mapping?: DtoEntityIntegrationMappingResponse | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const DtoLinkIntegrationMappingResponse$inboundSchema: z.ZodMiniType<
21
+ DtoLinkIntegrationMappingResponse,
22
+ unknown
23
+ > = z.object({
24
+ mapping: types.optional(DtoEntityIntegrationMappingResponse$inboundSchema),
25
+ });
26
+
27
+ export function dtoLinkIntegrationMappingResponseFromJSON(
28
+ jsonString: string,
29
+ ): SafeParseResult<DtoLinkIntegrationMappingResponse, SDKValidationError> {
30
+ return safeParse(
31
+ jsonString,
32
+ (x) => DtoLinkIntegrationMappingResponse$inboundSchema.parse(JSON.parse(x)),
33
+ `Failed to parse 'DtoLinkIntegrationMappingResponse' from JSON`,
34
+ );
35
+ }
@@ -4,11 +4,6 @@
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import {
8
- DtoIntegrationEntityMapping,
9
- DtoIntegrationEntityMapping$Outbound,
10
- DtoIntegrationEntityMapping$outboundSchema,
11
- } from "./dto-integration-entity-mapping.js";
12
7
 
13
8
  /**
14
9
  * Request object for updating an existing customer. All fields are optional - only provided fields will be updated
@@ -46,10 +41,6 @@ export type DtoUpdateCustomerRequest = {
46
41
  * external_id is the updated external identifier for the customer
47
42
  */
48
43
  externalId?: string | undefined;
49
- /**
50
- * integration_entity_mapping contains provider integration mappings for this customer
51
- */
52
- integrationEntityMapping?: Array<DtoIntegrationEntityMapping> | undefined;
53
44
  /**
54
45
  * metadata contains updated key-value pairs that will replace existing metadata
55
46
  */
@@ -87,9 +78,6 @@ export type DtoUpdateCustomerRequest$Outbound = {
87
78
  address_state?: string | undefined;
88
79
  email?: string | undefined;
89
80
  external_id?: string | undefined;
90
- integration_entity_mapping?:
91
- | Array<DtoIntegrationEntityMapping$Outbound>
92
- | undefined;
93
81
  metadata?: { [k: string]: string } | undefined;
94
82
  name?: string | undefined;
95
83
  parent_customer_external_id?: string | undefined;
@@ -110,9 +98,6 @@ export const DtoUpdateCustomerRequest$outboundSchema: z.ZodMiniType<
110
98
  addressState: z.optional(z.string()),
111
99
  email: z.optional(z.string()),
112
100
  externalId: z.optional(z.string()),
113
- integrationEntityMapping: z.optional(
114
- z.array(DtoIntegrationEntityMapping$outboundSchema),
115
- ),
116
101
  metadata: z.optional(z.record(z.string(), z.string())),
117
102
  name: z.optional(z.string()),
118
103
  parentCustomerExternalId: z.optional(z.string()),
@@ -127,7 +112,6 @@ export const DtoUpdateCustomerRequest$outboundSchema: z.ZodMiniType<
127
112
  addressPostalCode: "address_postal_code",
128
113
  addressState: "address_state",
129
114
  externalId: "external_id",
130
- integrationEntityMapping: "integration_entity_mapping",
131
115
  parentCustomerExternalId: "parent_customer_external_id",
132
116
  parentCustomerId: "parent_customer_id",
133
117
  });
@@ -35,7 +35,6 @@ export * from "./costsheet-filter.js";
35
35
  export * from "./coupon-cadence.js";
36
36
  export * from "./coupon-filter.js";
37
37
  export * from "./coupon-type.js";
38
- export * from "./create-or-update-integration-op.js";
39
38
  export * from "./create-subscription-line-item-op.js";
40
39
  export * from "./credit-breakdown.js";
41
40
  export * from "./credit-grant-application-reason.js";
@@ -58,10 +57,8 @@ export * from "./delete-coupon-op.js";
58
57
  export * from "./delete-credit-grant-op.js";
59
58
  export * from "./delete-customer-op.js";
60
59
  export * from "./delete-entitlement-op.js";
61
- export * from "./delete-entity-integration-mapping-op.js";
62
60
  export * from "./delete-feature-op.js";
63
61
  export * from "./delete-group-op.js";
64
- export * from "./delete-integration-op.js";
65
62
  export * from "./delete-payment-op.js";
66
63
  export * from "./delete-plan-op.js";
67
64
  export * from "./delete-price-op.js";
@@ -110,10 +107,8 @@ export * from "./dto-create-credit-note-line-item-request.js";
110
107
  export * from "./dto-create-credit-note-request.js";
111
108
  export * from "./dto-create-customer-request.js";
112
109
  export * from "./dto-create-entitlement-request.js";
113
- export * from "./dto-create-entity-integration-mapping-request.js";
114
110
  export * from "./dto-create-feature-request.js";
115
111
  export * from "./dto-create-group-request.js";
116
- export * from "./dto-create-integration-request.js";
117
112
  export * from "./dto-create-invoice-line-item-request.js";
118
113
  export * from "./dto-create-invoice-request.js";
119
114
  export * from "./dto-create-meter-request.js";
@@ -174,7 +169,6 @@ export * from "./dto-get-usage-request.js";
174
169
  export * from "./dto-get-usage-response.js";
175
170
  export * from "./dto-group-response.js";
176
171
  export * from "./dto-ingest-event-request.js";
177
- export * from "./dto-integration-entity-mapping.js";
178
172
  export * from "./dto-invoice-coupon.js";
179
173
  export * from "./dto-invoice-line-item-coupon.js";
180
174
  export * from "./dto-invoice-line-item-preview.js";
@@ -182,7 +176,8 @@ export * from "./dto-invoice-line-item-response.js";
182
176
  export * from "./dto-invoice-preview.js";
183
177
  export * from "./dto-invoice-response.js";
184
178
  export * from "./dto-line-item-commitment-config.js";
185
- export * from "./dto-linked-integrations-response.js";
179
+ export * from "./dto-link-integration-mapping-request.js";
180
+ export * from "./dto-link-integration-mapping-response.js";
186
181
  export * from "./dto-list-addons-response.js";
187
182
  export * from "./dto-list-alert-logs-response.js";
188
183
  export * from "./dto-list-costsheet-response.js";
@@ -324,7 +319,6 @@ export * from "./get-customer-wallets-op.js";
324
319
  export * from "./get-entitlement-op.js";
325
320
  export * from "./get-event-op.js";
326
321
  export * from "./get-group-op.js";
327
- export * from "./get-integration-op.js";
328
322
  export * from "./get-invoice-op.js";
329
323
  export * from "./get-invoice-pdf-op.js";
330
324
  export * from "./get-payment-op.js";
@@ -420,6 +414,7 @@ export * from "./round-type.js";
420
414
  export * from "./s3-compression-type.js";
421
415
  export * from "./s3-encryption-type.js";
422
416
  export * from "./s3-job-config.js";
417
+ export * from "./schedule-draft-finalization-op.js";
423
418
  export * from "./schedule-status.js";
424
419
  export * from "./schedule-type.js";
425
420
  export * from "./schedule-update-billing-period-op.js";
@@ -10,6 +10,7 @@ export const InvoiceStatus = {
10
10
  Draft: "DRAFT",
11
11
  Finalized: "FINALIZED",
12
12
  Voided: "VOIDED",
13
+ Skipped: "SKIPPED",
13
14
  } as const;
14
15
  export type InvoiceStatus = OpenEnum<typeof InvoiceStatus>;
15
16
 
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "./sdk-validation-error.js";
9
+
10
+ /**
11
+ * OK
12
+ */
13
+ export type ScheduleDraftFinalizationResponse = {};
14
+
15
+ /** @internal */
16
+ export const ScheduleDraftFinalizationResponse$inboundSchema: z.ZodMiniType<
17
+ ScheduleDraftFinalizationResponse,
18
+ unknown
19
+ > = z.object({});
20
+
21
+ export function scheduleDraftFinalizationResponseFromJSON(
22
+ jsonString: string,
23
+ ): SafeParseResult<ScheduleDraftFinalizationResponse, SDKValidationError> {
24
+ return safeParse(
25
+ jsonString,
26
+ (x) => ScheduleDraftFinalizationResponse$inboundSchema.parse(JSON.parse(x)),
27
+ `Failed to parse 'ScheduleDraftFinalizationResponse' from JSON`,
28
+ );
29
+ }
@@ -8,6 +8,7 @@ import { OpenEnum } from "../../types/enums.js";
8
8
 
9
9
  export const ScheduledTaskInterval = {
10
10
  FifteenMIN: "15MIN",
11
+ ThirtyMIN: "30MIN",
11
12
  Custom: "custom",
12
13
  Hourly: "hourly",
13
14
  Daily: "daily",
@@ -25,8 +25,3 @@ export const SecretProvider$inboundSchema: z.ZodMiniType<
25
25
  SecretProvider,
26
26
  unknown
27
27
  > = openEnums.inboundSchema(SecretProvider);
28
- /** @internal */
29
- export const SecretProvider$outboundSchema: z.ZodMiniType<
30
- string,
31
- SecretProvider
32
- > = openEnums.outboundSchema(SecretProvider);
@@ -6,6 +6,7 @@ import { scheduledTasksCreateScheduledTask } from "../funcs/scheduled-tasks-crea
6
6
  import { scheduledTasksDeleteScheduledTask } from "../funcs/scheduled-tasks-delete-scheduled-task.js";
7
7
  import { scheduledTasksGetScheduledTask } from "../funcs/scheduled-tasks-get-scheduled-task.js";
8
8
  import { scheduledTasksListScheduledTasks } from "../funcs/scheduled-tasks-list-scheduled-tasks.js";
9
+ import { scheduledTasksScheduleDraftFinalization } from "../funcs/scheduled-tasks-schedule-draft-finalization.js";
9
10
  import { scheduledTasksScheduleUpdateBillingPeriod } from "../funcs/scheduled-tasks-schedule-update-billing-period.js";
10
11
  import { scheduledTasksTriggerScheduledTaskRun } from "../funcs/scheduled-tasks-trigger-scheduled-task-run.js";
11
12
  import { scheduledTasksUpdateScheduledTask } from "../funcs/scheduled-tasks-update-scheduled-task.js";
@@ -48,6 +49,21 @@ export class ScheduledTasks extends ClientSDK {
48
49
  ));
49
50
  }
50
51
 
52
+ /**
53
+ * Schedule draft finalization
54
+ *
55
+ * @remarks
56
+ * Triggers the draft invoice finalization workflow that scans computed draft invoices whose finalization delay has elapsed and finalizes them (assign invoice number, sync to vendors, attempt payment).
57
+ */
58
+ async scheduleDraftFinalization(
59
+ options?: RequestOptions,
60
+ ): Promise<models.ScheduleDraftFinalizationResponse> {
61
+ return unwrapAsync(scheduledTasksScheduleDraftFinalization(
62
+ this,
63
+ options,
64
+ ));
65
+ }
66
+
51
67
  /**
52
68
  * Schedule update billing period
53
69
  *
package/src/sdk/sdk.ts CHANGED
@@ -11,7 +11,6 @@ import { CreditGrants } from "./credit-grants.js";
11
11
  import { CreditNotes } from "./credit-notes.js";
12
12
  import { Customers } from "./customers.js";
13
13
  import { Entitlements } from "./entitlements.js";
14
- import { EntityIntegrationMappings } from "./entity-integration-mappings.js";
15
14
  import { Events } from "./events.js";
16
15
  import { Features } from "./features.js";
17
16
  import { Groups } from "./groups.js";
@@ -85,13 +84,6 @@ export class Flexprice extends ClientSDK {
85
84
  return (this._invoices ??= new Invoices(this._options));
86
85
  }
87
86
 
88
- private _entityIntegrationMappings?: EntityIntegrationMappings;
89
- get entityIntegrationMappings(): EntityIntegrationMappings {
90
- return (this._entityIntegrationMappings ??= new EntityIntegrationMappings(
91
- this._options,
92
- ));
93
- }
94
-
95
87
  private _events?: Events;
96
88
  get events(): Events {
97
89
  return (this._events ??= new Events(this._options));
@@ -107,6 +99,11 @@ export class Flexprice extends ClientSDK {
107
99
  return (this._groups ??= new Groups(this._options));
108
100
  }
109
101
 
102
+ private _integrations?: Integrations;
103
+ get integrations(): Integrations {
104
+ return (this._integrations ??= new Integrations(this._options));
105
+ }
106
+
110
107
  private _payments?: Payments;
111
108
  get payments(): Payments {
112
109
  return (this._payments ??= new Payments(this._options));
@@ -137,11 +134,6 @@ export class Flexprice extends ClientSDK {
137
134
  return (this._secrets ??= new Secrets(this._options));
138
135
  }
139
136
 
140
- private _integrations?: Integrations;
141
- get integrations(): Integrations {
142
- return (this._integrations ??= new Integrations(this._options));
143
- }
144
-
145
137
  private _subscriptions?: Subscriptions;
146
138
  get subscriptions(): Subscriptions {
147
139
  return (this._subscriptions ??= new Subscriptions(this._options));
@@ -1,26 +0,0 @@
1
- # CreateOrUpdateIntegrationRequest
2
-
3
- ## Example Usage
4
-
5
- ```typescript
6
- import { CreateOrUpdateIntegrationRequest } from "@flexprice/sdk/sdk/models";
7
-
8
- let value: CreateOrUpdateIntegrationRequest = {
9
- provider: "<value>",
10
- body: {
11
- credentials: {
12
- "key": "<value>",
13
- "key1": "<value>",
14
- },
15
- name: "<value>",
16
- provider: "quickbooks",
17
- },
18
- };
19
- ```
20
-
21
- ## Fields
22
-
23
- | Field | Type | Required | Description |
24
- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
25
- | `provider` | *string* | :heavy_check_mark: | Integration provider |
26
- | `body` | [models.DtoCreateIntegrationRequest](../../sdk/models/dto-create-integration-request.md) | :heavy_check_mark: | Integration creation request |
@@ -1,17 +0,0 @@
1
- # DeleteEntityIntegrationMappingRequest
2
-
3
- ## Example Usage
4
-
5
- ```typescript
6
- import { DeleteEntityIntegrationMappingRequest } from "@flexprice/sdk/sdk/models";
7
-
8
- let value: DeleteEntityIntegrationMappingRequest = {
9
- id: "<id>",
10
- };
11
- ```
12
-
13
- ## Fields
14
-
15
- | Field | Type | Required | Description |
16
- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- |
17
- | `id` | *string* | :heavy_check_mark: | Entity integration mapping ID |
@@ -1,17 +0,0 @@
1
- # DeleteIntegrationRequest
2
-
3
- ## Example Usage
4
-
5
- ```typescript
6
- import { DeleteIntegrationRequest } from "@flexprice/sdk/sdk/models";
7
-
8
- let value: DeleteIntegrationRequest = {
9
- id: "<id>",
10
- };
11
- ```
12
-
13
- ## Fields
14
-
15
- | Field | Type | Required | Description |
16
- | ------------------ | ------------------ | ------------------ | ------------------ |
17
- | `id` | *string* | :heavy_check_mark: | Integration ID |
@@ -1,21 +0,0 @@
1
- # DtoCreateIntegrationRequest
2
-
3
- ## Example Usage
4
-
5
- ```typescript
6
- import { DtoCreateIntegrationRequest } from "@flexprice/sdk/sdk/models";
7
-
8
- let value: DtoCreateIntegrationRequest = {
9
- credentials: {},
10
- name: "<value>",
11
- provider: "s3",
12
- };
13
- ```
14
-
15
- ## Fields
16
-
17
- | Field | Type | Required | Description |
18
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
19
- | `credentials` | Record<string, *string*> | :heavy_check_mark: | N/A |
20
- | `name` | *string* | :heavy_check_mark: | N/A |
21
- | `provider` | [models.SecretProvider](../../sdk/models/secret-provider.md) | :heavy_check_mark: | N/A |
@@ -1,21 +0,0 @@
1
- # DtoIntegrationEntityMapping
2
-
3
- Integration entity mapping for external provider systems
4
-
5
- ## Example Usage
6
-
7
- ```typescript
8
- import { DtoIntegrationEntityMapping } from "@flexprice/sdk/sdk/models";
9
-
10
- let value: DtoIntegrationEntityMapping = {
11
- id: "<id>",
12
- provider: "stripe",
13
- };
14
- ```
15
-
16
- ## Fields
17
-
18
- | Field | Type | Required | Description |
19
- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
20
- | `id` | *string* | :heavy_check_mark: | id is the external entity ID from the provider |
21
- | `provider` | [models.Provider](../../sdk/models/provider.md) | :heavy_check_mark: | provider is the integration provider name (e.g., "stripe", "razorpay") |
@@ -1,15 +0,0 @@
1
- # DtoLinkedIntegrationsResponse
2
-
3
- ## Example Usage
4
-
5
- ```typescript
6
- import { DtoLinkedIntegrationsResponse } from "@flexprice/sdk/sdk/models";
7
-
8
- let value: DtoLinkedIntegrationsResponse = {};
9
- ```
10
-
11
- ## Fields
12
-
13
- | Field | Type | Required | Description |
14
- | ------------------ | ------------------ | ------------------ | ------------------ |
15
- | `providers` | *string*[] | :heavy_minus_sign: | N/A |
@@ -1,17 +0,0 @@
1
- # GetIntegrationRequest
2
-
3
- ## Example Usage
4
-
5
- ```typescript
6
- import { GetIntegrationRequest } from "@flexprice/sdk/sdk/models";
7
-
8
- let value: GetIntegrationRequest = {
9
- provider: "<value>",
10
- };
11
- ```
12
-
13
- ## Fields
14
-
15
- | Field | Type | Required | Description |
16
- | -------------------- | -------------------- | -------------------- | -------------------- |
17
- | `provider` | *string* | :heavy_check_mark: | Integration provider |
@@ -1,17 +0,0 @@
1
- # Provider
2
-
3
- provider is the integration provider name (e.g., "stripe", "razorpay")
4
-
5
- ## Example Usage
6
-
7
- ```typescript
8
- import { Provider } from "@flexprice/sdk/sdk/models";
9
-
10
- let value: Provider = "stripe";
11
- ```
12
-
13
- ## Values
14
-
15
- ```typescript
16
- "stripe" | "razorpay" | "paypal"
17
- ```
@@ -1,160 +0,0 @@
1
- # EntityIntegrationMappings
2
-
3
- ## Overview
4
-
5
- ### Available Operations
6
-
7
- * [createEntityIntegrationMapping](#createentityintegrationmapping) - Create entity integration mapping
8
- * [deleteEntityIntegrationMapping](#deleteentityintegrationmapping) - Delete entity integration mapping
9
-
10
- ## createEntityIntegrationMapping
11
-
12
- Use when linking a FlexPrice entity to an external system (e.g. CRM or payment provider) so you can sync or reconcile by external ID.
13
-
14
- ### Example Usage
15
-
16
- <!-- UsageSnippet language="typescript" operationID="createEntityIntegrationMapping" method="post" path="/entity-integration-mappings" -->
17
- ```typescript
18
- import { Flexprice } from "@flexprice/sdk";
19
-
20
- const flexprice = new Flexprice({
21
- apiKeyAuth: "<YOUR_API_KEY_HERE>",
22
- });
23
-
24
- async function run() {
25
- const result = await flexprice.entityIntegrationMappings.createEntityIntegrationMapping({
26
- entityId: "<id>",
27
- entityType: "credit_note",
28
- providerEntityId: "<id>",
29
- providerType: "<value>",
30
- });
31
-
32
- console.log(result);
33
- }
34
-
35
- run();
36
- ```
37
-
38
- ### Standalone function
39
-
40
- The standalone function version of this method:
41
-
42
- ```typescript
43
- import { FlexpriceCore } from "@flexprice/sdk/core.js";
44
- import { entityIntegrationMappingsCreateEntityIntegrationMapping } from "@flexprice/sdk/funcs/entity-integration-mappings-create-entity-integration-mapping.js";
45
-
46
- // Use `FlexpriceCore` for best tree-shaking performance.
47
- // You can create one instance of it to use across an application.
48
- const flexprice = new FlexpriceCore({
49
- apiKeyAuth: "<YOUR_API_KEY_HERE>",
50
- });
51
-
52
- async function run() {
53
- const res = await entityIntegrationMappingsCreateEntityIntegrationMapping(flexprice, {
54
- entityId: "<id>",
55
- entityType: "credit_note",
56
- providerEntityId: "<id>",
57
- providerType: "<value>",
58
- });
59
- if (res.ok) {
60
- const { value: result } = res;
61
- console.log(result);
62
- } else {
63
- console.log("entityIntegrationMappingsCreateEntityIntegrationMapping failed:", res.error);
64
- }
65
- }
66
-
67
- run();
68
- ```
69
-
70
- ### Parameters
71
-
72
- | Parameter | Type | Required | Description |
73
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
74
- | `request` | [models.DtoCreateEntityIntegrationMappingRequest](../../sdk/models/dto-create-entity-integration-mapping-request.md) | :heavy_check_mark: | The request object to use for the request. |
75
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
76
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
77
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
78
-
79
- ### Response
80
-
81
- **Promise\<[models.DtoEntityIntegrationMappingResponse](../../sdk/models/dto-entity-integration-mapping-response.md)\>**
82
-
83
- ### Errors
84
-
85
- | Error Type | Status Code | Content Type |
86
- | -------------------------------- | -------------------------------- | -------------------------------- |
87
- | models.ErrorsErrorsErrorResponse | 400, 401, 409 | application/json |
88
- | models.ErrorsErrorsErrorResponse | 500 | application/json |
89
- | models.SDKError | 4XX, 5XX | \*/\* |
90
-
91
- ## deleteEntityIntegrationMapping
92
-
93
- Use when unlinking a FlexPrice entity from an external system or cleaning up stale integration mappings.
94
-
95
- ### Example Usage
96
-
97
- <!-- UsageSnippet language="typescript" operationID="deleteEntityIntegrationMapping" method="delete" path="/entity-integration-mappings/{id}" -->
98
- ```typescript
99
- import { Flexprice } from "@flexprice/sdk";
100
-
101
- const flexprice = new Flexprice({
102
- apiKeyAuth: "<YOUR_API_KEY_HERE>",
103
- });
104
-
105
- async function run() {
106
- await flexprice.entityIntegrationMappings.deleteEntityIntegrationMapping("<id>");
107
-
108
-
109
- }
110
-
111
- run();
112
- ```
113
-
114
- ### Standalone function
115
-
116
- The standalone function version of this method:
117
-
118
- ```typescript
119
- import { FlexpriceCore } from "@flexprice/sdk/core.js";
120
- import { entityIntegrationMappingsDeleteEntityIntegrationMapping } from "@flexprice/sdk/funcs/entity-integration-mappings-delete-entity-integration-mapping.js";
121
-
122
- // Use `FlexpriceCore` for best tree-shaking performance.
123
- // You can create one instance of it to use across an application.
124
- const flexprice = new FlexpriceCore({
125
- apiKeyAuth: "<YOUR_API_KEY_HERE>",
126
- });
127
-
128
- async function run() {
129
- const res = await entityIntegrationMappingsDeleteEntityIntegrationMapping(flexprice, "<id>");
130
- if (res.ok) {
131
- const { value: result } = res;
132
-
133
- } else {
134
- console.log("entityIntegrationMappingsDeleteEntityIntegrationMapping failed:", res.error);
135
- }
136
- }
137
-
138
- run();
139
- ```
140
-
141
- ### Parameters
142
-
143
- | Parameter | Type | Required | Description |
144
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
145
- | `id` | *string* | :heavy_check_mark: | Entity integration mapping ID |
146
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
147
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
148
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
149
-
150
- ### Response
151
-
152
- **Promise\<void\>**
153
-
154
- ### Errors
155
-
156
- | Error Type | Status Code | Content Type |
157
- | -------------------------------- | -------------------------------- | -------------------------------- |
158
- | models.ErrorsErrorsErrorResponse | 400, 401, 404 | application/json |
159
- | models.ErrorsErrorsErrorResponse | 500 | application/json |
160
- | models.SDKError | 4XX, 5XX | \*/\* |
@@ -1,17 +0,0 @@
1
- import { FlexpriceCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { FlexPriceError } from "../sdk/models/flex-price-error.js";
4
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/http-client-errors.js";
5
- import * as models from "../sdk/models/index.js";
6
- import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
7
- import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
8
- import { APIPromise } from "../types/async.js";
9
- import { Result } from "../types/fp.js";
10
- /**
11
- * Create entity integration mapping
12
- *
13
- * @remarks
14
- * Use when linking a FlexPrice entity to an external system (e.g. CRM or payment provider) so you can sync or reconcile by external ID.
15
- */
16
- export declare function entityIntegrationMappingsCreateEntityIntegrationMapping(client: FlexpriceCore, request: models.DtoCreateEntityIntegrationMappingRequest, options?: RequestOptions): APIPromise<Result<models.DtoEntityIntegrationMappingResponse, models.ErrorsErrorsErrorResponse | FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
- //# sourceMappingURL=entity-integration-mappings-create-entity-integration-mapping.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entity-integration-mappings-create-entity-integration-mapping.d.ts","sourceRoot":"","sources":["../../src/funcs/entity-integration-mappings-create-entity-integration-mapping.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,uDAAuD,CACrE,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,MAAM,CAAC,wCAAwC,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,mCAAmC,EACxC,MAAM,CAAC,yBAAyB,GAChC,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"entity-integration-mappings-create-entity-integration-mapping.js","sourceRoot":"","sources":["../../src/funcs/entity-integration-mappings-create-entity-integration-mapping.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAGjD,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,UAAU,uDAAuD,CACrE,MAAqB,EACrB,OAAwD,EACxD,OAAwB,EAcxB;IACA,OAAO,IAAI,UAAU,CAA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