@epilot/sdk 2.20.42 → 2.20.44

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 (140) hide show
  1. package/definitions/integration-toolkit-runtime.json +1 -1
  2. package/definitions/integration-toolkit.json +133 -1
  3. package/definitions/pricing.json +5 -5
  4. package/dist/apis/access-token.cjs +6 -6
  5. package/dist/apis/access-token.js +1 -1
  6. package/dist/apis/address-suggestions.cjs +6 -6
  7. package/dist/apis/address-suggestions.js +1 -1
  8. package/dist/apis/address.cjs +6 -6
  9. package/dist/apis/address.js +1 -1
  10. package/dist/apis/ai-agents.cjs +6 -6
  11. package/dist/apis/ai-agents.js +1 -1
  12. package/dist/apis/app.cjs +6 -6
  13. package/dist/apis/app.js +1 -1
  14. package/dist/apis/audit-logs.cjs +6 -6
  15. package/dist/apis/audit-logs.js +1 -1
  16. package/dist/apis/automation.cjs +6 -6
  17. package/dist/apis/automation.js +1 -1
  18. package/dist/apis/billing.cjs +6 -6
  19. package/dist/apis/billing.js +1 -1
  20. package/dist/apis/blueprint-manifest.cjs +6 -6
  21. package/dist/apis/blueprint-manifest.js +1 -1
  22. package/dist/apis/calendar.cjs +6 -6
  23. package/dist/apis/calendar.js +1 -1
  24. package/dist/apis/chat.cjs +6 -6
  25. package/dist/apis/chat.js +1 -1
  26. package/dist/apis/configuration-hub.cjs +6 -6
  27. package/dist/apis/configuration-hub.js +1 -1
  28. package/dist/apis/consent.cjs +6 -6
  29. package/dist/apis/consent.js +1 -1
  30. package/dist/apis/customer-portal.cjs +6 -6
  31. package/dist/apis/customer-portal.js +1 -1
  32. package/dist/apis/dashboard.cjs +6 -6
  33. package/dist/apis/dashboard.js +1 -1
  34. package/dist/apis/data-governance.cjs +6 -6
  35. package/dist/apis/data-governance.js +1 -1
  36. package/dist/apis/deduplication.cjs +6 -6
  37. package/dist/apis/deduplication.js +1 -1
  38. package/dist/apis/design.cjs +6 -6
  39. package/dist/apis/design.js +1 -1
  40. package/dist/apis/document.cjs +6 -6
  41. package/dist/apis/document.js +1 -1
  42. package/dist/apis/email-settings.cjs +6 -6
  43. package/dist/apis/email-settings.js +1 -1
  44. package/dist/apis/email-template.cjs +6 -6
  45. package/dist/apis/email-template.js +1 -1
  46. package/dist/apis/entity-mapping.cjs +6 -6
  47. package/dist/apis/entity-mapping.js +1 -1
  48. package/dist/apis/entity.cjs +6 -6
  49. package/dist/apis/entity.js +1 -1
  50. package/dist/apis/environments.cjs +6 -6
  51. package/dist/apis/environments.js +1 -1
  52. package/dist/apis/event-catalog.cjs +6 -6
  53. package/dist/apis/event-catalog.js +1 -1
  54. package/dist/apis/file.cjs +6 -6
  55. package/dist/apis/file.js +1 -1
  56. package/dist/apis/iban.cjs +6 -6
  57. package/dist/apis/iban.js +1 -1
  58. package/dist/apis/identity.cjs +6 -6
  59. package/dist/apis/identity.js +1 -1
  60. package/dist/apis/integration-toolkit.cjs +8 -8
  61. package/dist/apis/integration-toolkit.d.cts +2 -2
  62. package/dist/apis/integration-toolkit.d.ts +2 -2
  63. package/dist/apis/integration-toolkit.js +2 -2
  64. package/dist/apis/journey.cjs +6 -6
  65. package/dist/apis/journey.js +1 -1
  66. package/dist/apis/kanban.cjs +6 -6
  67. package/dist/apis/kanban.js +1 -1
  68. package/dist/apis/message.cjs +6 -6
  69. package/dist/apis/message.js +1 -1
  70. package/dist/apis/metering.cjs +6 -6
  71. package/dist/apis/metering.js +1 -1
  72. package/dist/apis/notes.cjs +6 -6
  73. package/dist/apis/notes.js +1 -1
  74. package/dist/apis/notification.cjs +6 -6
  75. package/dist/apis/notification.js +1 -1
  76. package/dist/apis/organization.cjs +6 -6
  77. package/dist/apis/organization.js +1 -1
  78. package/dist/apis/partner-directory.cjs +6 -6
  79. package/dist/apis/partner-directory.js +1 -1
  80. package/dist/apis/permissions.cjs +6 -6
  81. package/dist/apis/permissions.js +1 -1
  82. package/dist/apis/pricing-tier.cjs +6 -6
  83. package/dist/apis/pricing-tier.js +1 -1
  84. package/dist/apis/pricing.cjs +6 -6
  85. package/dist/apis/pricing.d.cts +2 -2
  86. package/dist/apis/pricing.d.ts +2 -2
  87. package/dist/apis/pricing.js +1 -1
  88. package/dist/apis/purpose.cjs +6 -6
  89. package/dist/apis/purpose.js +1 -1
  90. package/dist/apis/query.cjs +6 -6
  91. package/dist/apis/query.js +1 -1
  92. package/dist/apis/sandbox.cjs +6 -6
  93. package/dist/apis/sandbox.js +1 -1
  94. package/dist/apis/sharing.cjs +6 -6
  95. package/dist/apis/sharing.js +1 -1
  96. package/dist/apis/snapshot.cjs +6 -6
  97. package/dist/apis/snapshot.js +1 -1
  98. package/dist/apis/submission.cjs +6 -6
  99. package/dist/apis/submission.js +1 -1
  100. package/dist/apis/target.cjs +6 -6
  101. package/dist/apis/target.js +1 -1
  102. package/dist/apis/targeting.cjs +6 -6
  103. package/dist/apis/targeting.js +1 -1
  104. package/dist/apis/template-variables.cjs +6 -6
  105. package/dist/apis/template-variables.js +1 -1
  106. package/dist/apis/user.cjs +6 -6
  107. package/dist/apis/user.js +1 -1
  108. package/dist/apis/validation-rules.cjs +6 -6
  109. package/dist/apis/validation-rules.js +1 -1
  110. package/dist/apis/webhooks.cjs +6 -6
  111. package/dist/apis/webhooks.js +1 -1
  112. package/dist/apis/workflow-definition.cjs +6 -6
  113. package/dist/apis/workflow-definition.js +1 -1
  114. package/dist/apis/workflow.cjs +6 -6
  115. package/dist/apis/workflow.js +1 -1
  116. package/dist/{chunk-4OBXBYLK.js → chunk-6JWMDS4Z.js} +1 -1
  117. package/dist/{chunk-4M4Z7BKK.cjs → chunk-EPZ3JT2W.cjs} +1 -1
  118. package/dist/{chunk-XKZX3NYY.cjs → chunk-IYEK3653.cjs} +3 -3
  119. package/dist/{chunk-F3TXIZLP.js → chunk-LHBJF2FW.js} +3 -3
  120. package/dist/index.cjs +10 -10
  121. package/dist/index.d.cts +2 -2
  122. package/dist/index.d.ts +2 -2
  123. package/dist/index.js +2 -2
  124. package/dist/integration-toolkit-EIVEAO4Z.cjs +7 -0
  125. package/dist/integration-toolkit-NIA5DND5.js +7 -0
  126. package/dist/{integration-toolkit-runtime-ABL4FFLI.js → integration-toolkit-runtime-FT2J5NFV.js} +1 -1
  127. package/dist/{integration-toolkit-runtime-SU7VKZJB.cjs → integration-toolkit-runtime-GDJVWSKC.cjs} +2 -2
  128. package/dist/{integration-toolkit.d-DRYMfItg.d.cts → integration-toolkit.d-D4CzSBOS.d.cts} +88 -1
  129. package/dist/{integration-toolkit.d-DRYMfItg.d.ts → integration-toolkit.d-D4CzSBOS.d.ts} +88 -1
  130. package/dist/pricing-JAICFDO5.cjs +7 -0
  131. package/dist/pricing-MYZSVSGK.js +7 -0
  132. package/dist/{pricing.d-CRYlsNBY.d.cts → pricing.d-B3_8FPCM.d.cts} +19 -13
  133. package/dist/{pricing.d-CRYlsNBY.d.ts → pricing.d-B3_8FPCM.d.ts} +19 -13
  134. package/docs/integration-toolkit.md +68 -0
  135. package/docs/pricing.md +3 -3
  136. package/package.json +1 -1
  137. package/dist/integration-toolkit-4W2SXQZZ.cjs +0 -7
  138. package/dist/integration-toolkit-WZ324PVF.js +0 -7
  139. package/dist/pricing-PBBDRMSO.js +0 -7
  140. package/dist/pricing-PLWFGMKQ.cjs +0 -7
@@ -1637,8 +1637,9 @@ declare namespace Components {
1637
1637
  *
1638
1638
  * Exact values only; predicates belong to reads. Values are stored canonicalized for their
1639
1639
  * type: a `date` becomes millisecond-precision UTC, a `daterange` an object carrying `from`
1640
- * and `until` where an empty string is an open end, a `location` of format `zipcode` the
1641
- * postal code itself and one of format `zipcode_town` an object carrying both.
1640
+ * and `until` where an empty string is an open end, a `location` of format `postal_code` the
1641
+ * postal code itself and one of format `postal_code_city` an object carrying `postal_code` and
1642
+ * `city`.
1642
1643
  *
1643
1644
  * `default` and names beginning with `_` are reserved; use the request's `default` flag.
1644
1645
  *
@@ -4111,8 +4112,9 @@ declare namespace Components {
4111
4112
  *
4112
4113
  * Exact values only; predicates belong to reads. Values are stored canonicalized for their
4113
4114
  * type: a `date` becomes millisecond-precision UTC, a `daterange` an object carrying `from`
4114
- * and `until` where an empty string is an open end, a `location` of format `zipcode` the
4115
- * postal code itself and one of format `zipcode_town` an object carrying both.
4115
+ * and `until` where an empty string is an open end, a `location` of format `postal_code` the
4116
+ * postal code itself and one of format `postal_code_city` an object carrying `postal_code` and
4117
+ * `city`.
4116
4118
  *
4117
4119
  * `default` and names beginning with `_` are reserved; use the request's `default` flag.
4118
4120
  *
@@ -9167,7 +9169,7 @@ declare namespace Components {
9167
9169
  /**
9168
9170
  * The value shape of a `location` condition. Absent for every other type.
9169
9171
  */
9170
- format?: "zipcode" | "zipcode_town";
9172
+ format?: "postal_code" | "postal_code_city";
9171
9173
  }
9172
9174
  /**
9173
9175
  * A named bundle of condition definitions, built in for one entity type.
@@ -11301,8 +11303,9 @@ declare namespace Components {
11301
11303
  *
11302
11304
  * Exact values only; predicates belong to reads. Values are stored canonicalized for their
11303
11305
  * type: a `date` becomes millisecond-precision UTC, a `daterange` an object carrying `from`
11304
- * and `until` where an empty string is an open end, a `location` of format `zipcode` the
11305
- * postal code itself and one of format `zipcode_town` an object carrying both.
11306
+ * and `until` where an empty string is an open end, a `location` of format `postal_code` the
11307
+ * postal code itself and one of format `postal_code_city` an object carrying `postal_code` and
11308
+ * `city`.
11306
11309
  *
11307
11310
  * `default` and names beginning with `_` are reserved; use the request's `default` flag.
11308
11311
  *
@@ -13929,8 +13932,9 @@ declare namespace Components {
13929
13932
  *
13930
13933
  * Exact values only; predicates belong to reads. Values are stored canonicalized for their
13931
13934
  * type: a `date` becomes millisecond-precision UTC, a `daterange` an object carrying `from`
13932
- * and `until` where an empty string is an open end, a `location` of format `zipcode` the
13933
- * postal code itself and one of format `zipcode_town` an object carrying both.
13935
+ * and `until` where an empty string is an open end, a `location` of format `postal_code` the
13936
+ * postal code itself and one of format `postal_code_city` an object carrying `postal_code` and
13937
+ * `city`.
13934
13938
  *
13935
13939
  * `default` and names beginning with `_` are reserved; use the request's `default` flag.
13936
13940
  *
@@ -17072,8 +17076,9 @@ declare namespace Components {
17072
17076
  *
17073
17077
  * An `in` list carries at most 50,000 values. A `string` or `select` matches exactly and
17074
17078
  * case-sensitively. A `location` of format
17075
- * `zipcode` is the postal code itself; one of format `zipcode_town` is an object carrying
17076
- * both, whose town is compared case- and whitespace-insensitively.
17079
+ * `postal_code` is the postal code itself; one of format `postal_code_city` is an object carrying
17080
+ * `postal_code` and `city`, named as an entity address names them, whose city is compared
17081
+ * case- and whitespace-insensitively.
17077
17082
  *
17078
17083
  * `default` and names beginning with `_` are reserved and cannot be supplied.
17079
17084
  *
@@ -17172,8 +17177,9 @@ declare namespace Components {
17172
17177
  *
17173
17178
  * An `in` list carries at most 50,000 values. A `string` or `select` matches exactly and
17174
17179
  * case-sensitively. A `location` of format
17175
- * `zipcode` is the postal code itself; one of format `zipcode_town` is an object carrying
17176
- * both, whose town is compared case- and whitespace-insensitively.
17180
+ * `postal_code` is the postal code itself; one of format `postal_code_city` is an object carrying
17181
+ * `postal_code` and `city`, named as an entity address names them, whose city is compared
17182
+ * case- and whitespace-insensitively.
17177
17183
  *
17178
17184
  * `default` and names beginning with `_` are reserved and cannot be supplied.
17179
17185
  *
@@ -100,6 +100,8 @@ const { data } = await integrationToolkitClient.acknowledgeTracking(...)
100
100
  - [`listErpImports`](#listerpimports)
101
101
  - [`getErpImport`](#geterpimport)
102
102
  - [`deleteErpImport`](#deleteerpimport)
103
+ - [`getErpImportPreview`](#geterpimportpreview)
104
+ - [`downloadErpImportFile`](#downloaderpimportfile)
103
105
  - [`validateErpImport`](#validateerpimport)
104
106
  - [`suggestErpImportUseCases`](#suggesterpimportusecases)
105
107
  - [`executeErpImport`](#executeerpimport)
@@ -118,6 +120,7 @@ const { data } = await integrationToolkitClient.acknowledgeTracking(...)
118
120
  - [`ErpImportProgress`](#erpimportprogress)
119
121
  - [`ErpImportError`](#erpimporterror)
120
122
  - [`ErpImportFilePreview`](#erpimportfilepreview)
123
+ - [`ErpImportDownload`](#erpimportdownload)
121
124
  - [`CreateErpImportResponse`](#createerpimportresponse)
122
125
  - [`ErpImportJob`](#erpimportjob)
123
126
  - [`ErpImportList`](#erpimportlist)
@@ -3927,6 +3930,61 @@ const { data } = await client.deleteErpImport({
3927
3930
 
3928
3931
  ---
3929
3932
 
3933
+ ### `getErpImportPreview`
3934
+
3935
+ The file preview of an existing import: its columns and first data rows, the same sample `createErpImport` returns with `include_preview`. Lets a client that opens a job later show its file, and is in
3936
+
3937
+ `GET /v2/erp/imports/{importId}/preview`
3938
+
3939
+ ```ts
3940
+ const { data } = await client.getErpImportPreview({
3941
+ importId: 'example',
3942
+ })
3943
+ ```
3944
+
3945
+ <details>
3946
+ <summary>Response</summary>
3947
+
3948
+ ```json
3949
+ {
3950
+ "columns": ["string"],
3951
+ "rows": [
3952
+ ["string"]
3953
+ ]
3954
+ }
3955
+ ```
3956
+
3957
+ </details>
3958
+
3959
+ ---
3960
+
3961
+ ### `downloadErpImportFile`
3962
+
3963
+ A short-lived presigned URL that downloads the file this import was registered with — the import's own copy, so exactly what `:validate` and `:execute` read. The URL serves the file as an attachment u
3964
+
3965
+ `GET /v2/erp/imports/{importId}/download`
3966
+
3967
+ ```ts
3968
+ const { data } = await client.downloadErpImportFile({
3969
+ importId: 'example',
3970
+ })
3971
+ ```
3972
+
3973
+ <details>
3974
+ <summary>Response</summary>
3975
+
3976
+ ```json
3977
+ {
3978
+ "download_url": "https://example.com/path",
3979
+ "filename": "string",
3980
+ "expires_at": "1970-01-01T00:00:00.000Z"
3981
+ }
3982
+ ```
3983
+
3984
+ </details>
3985
+
3986
+ ---
3987
+
3930
3988
  ### `validateErpImport`
3931
3989
 
3932
3990
  Choose the use case to read this file with, and start the validate phase.
@@ -4193,6 +4251,16 @@ type ErpImportFilePreview = {
4193
4251
  }
4194
4252
  ```
4195
4253
 
4254
+ ### `ErpImportDownload`
4255
+
4256
+ ```ts
4257
+ type ErpImportDownload = {
4258
+ download_url: string // uri
4259
+ filename: string
4260
+ expires_at: string // date-time
4261
+ }
4262
+ ```
4263
+
4196
4264
  ### `CreateErpImportResponse`
4197
4265
 
4198
4266
  ```ts
package/docs/pricing.md CHANGED
@@ -1864,7 +1864,7 @@ const { data } = await client.$getConditionSets({
1864
1864
  "title": "Commercial customers"
1865
1865
  }
1866
1866
  ],
1867
- "format": "zipcode"
1867
+ "format": "postal_code"
1868
1868
  }
1869
1869
  ]
1870
1870
  }
@@ -2846,7 +2846,7 @@ type ConditionDefinition = {
2846
2846
  value: string
2847
2847
  title?: string
2848
2848
  }>
2849
- format?: "zipcode" | "zipcode_town"
2849
+ format?: "postal_code" | "postal_code_city"
2850
2850
  }
2851
2851
  ```
2852
2852
 
@@ -2868,7 +2868,7 @@ type ConditionSet = {
2868
2868
  value: { ... }
2869
2869
  title?: { ... }
2870
2870
  }>
2871
- format?: "zipcode" | "zipcode_town"
2871
+ format?: "postal_code" | "postal_code_city"
2872
2872
  }>
2873
2873
  }
2874
2874
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.20.42",
3
+ "version": "2.20.44",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",