@commercelayer/provisioning-sdk 3.0.0-beta.0 → 3.0.0-beta.2

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 (146) hide show
  1. package/README.md +18 -9
  2. package/lib/{api-BY0jb79k.d.cts → api-C4jp_9vb.d.cts} +489 -480
  3. package/lib/{api-e4p3q-SB.d.ts → api-C_E9e1ea.d.ts} +489 -480
  4. package/lib/api.cjs +23 -23
  5. package/lib/api.d.cts +1 -1
  6. package/lib/api.d.ts +1 -1
  7. package/lib/api.js +13 -13
  8. package/lib/binding.cjs +3 -3
  9. package/lib/binding.d.cts +2 -2
  10. package/lib/binding.d.ts +2 -2
  11. package/lib/binding.js +2 -2
  12. package/lib/bundle.cjs +17 -17
  13. package/lib/bundle.d.cts +1 -1
  14. package/lib/bundle.d.ts +1 -1
  15. package/lib/bundle.js +15 -15
  16. package/lib/{chunk-63TTSE4U.cjs → chunk-3ILNEP2F.cjs} +26 -26
  17. package/lib/{chunk-63TTSE4U.cjs.map → chunk-3ILNEP2F.cjs.map} +1 -1
  18. package/lib/{chunk-C6AOOHOR.cjs → chunk-3NDVX4SE.cjs} +4 -4
  19. package/lib/{chunk-C6AOOHOR.cjs.map → chunk-3NDVX4SE.cjs.map} +1 -1
  20. package/lib/{chunk-DTD2FIJ3.js → chunk-3PJNJ7B6.js} +3 -3
  21. package/lib/{chunk-DTD2FIJ3.js.map → chunk-3PJNJ7B6.js.map} +1 -1
  22. package/lib/{chunk-ELYBYKRM.cjs → chunk-6FB54J7W.cjs} +4 -4
  23. package/lib/chunk-6FB54J7W.cjs.map +1 -0
  24. package/lib/{chunk-5KN7B3T2.cjs → chunk-6MXIGF2G.cjs} +10 -10
  25. package/lib/{chunk-5KN7B3T2.cjs.map → chunk-6MXIGF2G.cjs.map} +1 -1
  26. package/lib/{chunk-YYHZPR4Z.js → chunk-7YEOUGXO.js} +3 -3
  27. package/lib/{chunk-YYHZPR4Z.js.map → chunk-7YEOUGXO.js.map} +1 -1
  28. package/lib/{chunk-E2ERI2EX.js → chunk-CWXGTX7W.js} +4 -4
  29. package/lib/{chunk-E2ERI2EX.js.map → chunk-CWXGTX7W.js.map} +1 -1
  30. package/lib/{chunk-HAZ53WDW.cjs → chunk-DYMRH6LP.cjs} +4 -4
  31. package/lib/{chunk-HAZ53WDW.cjs.map → chunk-DYMRH6LP.cjs.map} +1 -1
  32. package/lib/{chunk-FWF7HBWB.js → chunk-ECGUWRRG.js} +3 -3
  33. package/lib/{chunk-FWF7HBWB.js.map → chunk-ECGUWRRG.js.map} +1 -1
  34. package/lib/{chunk-F2RLD5SN.cjs → chunk-EVDEBFHZ.cjs} +13 -8
  35. package/lib/chunk-EVDEBFHZ.cjs.map +1 -0
  36. package/lib/{chunk-BWDFMGX6.cjs → chunk-FMHTNUZ4.cjs} +4 -4
  37. package/lib/{chunk-BWDFMGX6.cjs.map → chunk-FMHTNUZ4.cjs.map} +1 -1
  38. package/lib/{chunk-HOL7SMFN.cjs → chunk-FRLV5YFL.cjs} +4 -4
  39. package/lib/{chunk-HOL7SMFN.cjs.map → chunk-FRLV5YFL.cjs.map} +1 -1
  40. package/lib/{chunk-UYATAIX7.js → chunk-G4JBHI2H.js} +3 -3
  41. package/lib/{chunk-UYATAIX7.js.map → chunk-G4JBHI2H.js.map} +1 -1
  42. package/lib/{chunk-4Z4U45XQ.js → chunk-GHXKZEH7.js} +8 -3
  43. package/lib/chunk-GHXKZEH7.js.map +1 -0
  44. package/lib/{chunk-35GNS3WW.js → chunk-I4LPOTDO.js} +3 -3
  45. package/lib/{chunk-35GNS3WW.js.map → chunk-I4LPOTDO.js.map} +1 -1
  46. package/lib/{chunk-VAL4CE5R.js → chunk-IRFPCJTG.js} +3 -3
  47. package/lib/{chunk-VAL4CE5R.js.map → chunk-IRFPCJTG.js.map} +1 -1
  48. package/lib/{chunk-3XLKYXM6.cjs → chunk-KO4FQ4V2.cjs} +4 -4
  49. package/lib/{chunk-3XLKYXM6.cjs.map → chunk-KO4FQ4V2.cjs.map} +1 -1
  50. package/lib/{chunk-U2CAAK2J.js → chunk-KT6LCJJQ.js} +3 -3
  51. package/lib/{chunk-U2CAAK2J.js.map → chunk-KT6LCJJQ.js.map} +1 -1
  52. package/lib/{chunk-FOU52N6P.js → chunk-LTIWXCVE.js} +3 -3
  53. package/lib/{chunk-FOU52N6P.js.map → chunk-LTIWXCVE.js.map} +1 -1
  54. package/lib/{chunk-W6XILXYS.cjs → chunk-MHV7FMLE.cjs} +4 -4
  55. package/lib/{chunk-W6XILXYS.cjs.map → chunk-MHV7FMLE.cjs.map} +1 -1
  56. package/lib/{chunk-Z4IAVXOO.cjs → chunk-NDKGLF4B.cjs} +4 -4
  57. package/lib/{chunk-Z4IAVXOO.cjs.map → chunk-NDKGLF4B.cjs.map} +1 -1
  58. package/lib/{chunk-CFU5DNH2.cjs → chunk-OROPOAHK.cjs} +4 -4
  59. package/lib/{chunk-CFU5DNH2.cjs.map → chunk-OROPOAHK.cjs.map} +1 -1
  60. package/lib/{chunk-UB3WPGDV.js → chunk-SQLX22US.js} +3 -3
  61. package/lib/chunk-SQLX22US.js.map +1 -0
  62. package/lib/{chunk-3ELZDTFF.js → chunk-STPXKF53.js} +4 -4
  63. package/lib/{chunk-3ELZDTFF.js.map → chunk-STPXKF53.js.map} +1 -1
  64. package/lib/{chunk-RDLVNJEW.js → chunk-T2U6MUX4.js} +3 -3
  65. package/lib/{chunk-RDLVNJEW.js.map → chunk-T2U6MUX4.js.map} +1 -1
  66. package/lib/{chunk-CLOSZJSZ.cjs → chunk-TXONK7R5.cjs} +4 -4
  67. package/lib/{chunk-CLOSZJSZ.cjs.map → chunk-TXONK7R5.cjs.map} +1 -1
  68. package/lib/{chunk-WRVLCJQZ.cjs → chunk-TY46WNR6.cjs} +8 -8
  69. package/lib/{chunk-WRVLCJQZ.cjs.map → chunk-TY46WNR6.cjs.map} +1 -1
  70. package/lib/{chunk-7OPCEEJV.cjs → chunk-UILXNOZE.cjs} +4 -4
  71. package/lib/{chunk-7OPCEEJV.cjs.map → chunk-UILXNOZE.cjs.map} +1 -1
  72. package/lib/{chunk-GES5UXTI.js → chunk-WMUY7Z2Q.js} +3 -3
  73. package/lib/{chunk-GES5UXTI.js.map → chunk-WMUY7Z2Q.js.map} +1 -1
  74. package/lib/{chunk-3FP4NVLD.cjs → chunk-XS6QLJHG.cjs} +3 -3
  75. package/lib/chunk-XS6QLJHG.cjs.map +1 -0
  76. package/lib/{chunk-6I5KGZAU.js → chunk-YUNEDDTL.js} +14 -14
  77. package/lib/{chunk-6I5KGZAU.js.map → chunk-YUNEDDTL.js.map} +1 -1
  78. package/lib/{chunk-QRZGS4TB.js → chunk-ZWZHZ4SU.js} +3 -3
  79. package/lib/chunk-ZWZHZ4SU.js.map +1 -0
  80. package/lib/commercelayer.cjs +10 -10
  81. package/lib/commercelayer.d.cts +1 -1
  82. package/lib/commercelayer.d.ts +1 -1
  83. package/lib/commercelayer.js +4 -4
  84. package/lib/enum.d.cts +1 -1
  85. package/lib/enum.d.ts +1 -1
  86. package/lib/index.cjs +22 -22
  87. package/lib/index.cjs.map +1 -1
  88. package/lib/index.d.cts +1 -1
  89. package/lib/index.d.ts +1 -1
  90. package/lib/index.js +17 -17
  91. package/lib/index.js.map +1 -1
  92. package/lib/model.d.cts +1 -1
  93. package/lib/model.d.ts +1 -1
  94. package/lib/resources/api_credentials.cjs +5 -5
  95. package/lib/resources/api_credentials.d.cts +2 -2
  96. package/lib/resources/api_credentials.d.ts +1 -1
  97. package/lib/resources/api_credentials.js +4 -4
  98. package/lib/resources/application_memberships.cjs +5 -5
  99. package/lib/resources/application_memberships.d.cts +2 -2
  100. package/lib/resources/application_memberships.d.ts +1 -1
  101. package/lib/resources/application_memberships.js +4 -4
  102. package/lib/resources/identity_providers.cjs +5 -5
  103. package/lib/resources/identity_providers.d.cts +2 -2
  104. package/lib/resources/identity_providers.d.ts +1 -1
  105. package/lib/resources/identity_providers.js +4 -4
  106. package/lib/resources/membership_profiles.cjs +5 -5
  107. package/lib/resources/membership_profiles.d.cts +2 -2
  108. package/lib/resources/membership_profiles.d.ts +1 -1
  109. package/lib/resources/membership_profiles.js +4 -4
  110. package/lib/resources/memberships.cjs +5 -5
  111. package/lib/resources/memberships.d.cts +2 -2
  112. package/lib/resources/memberships.d.ts +1 -1
  113. package/lib/resources/memberships.js +4 -4
  114. package/lib/resources/organizations.cjs +5 -5
  115. package/lib/resources/organizations.d.cts +2 -2
  116. package/lib/resources/organizations.d.ts +1 -1
  117. package/lib/resources/organizations.js +4 -4
  118. package/lib/resources/permissions.cjs +5 -5
  119. package/lib/resources/permissions.d.cts +2 -2
  120. package/lib/resources/permissions.d.ts +1 -1
  121. package/lib/resources/permissions.js +4 -4
  122. package/lib/resources/roles.cjs +5 -5
  123. package/lib/resources/roles.d.cts +2 -2
  124. package/lib/resources/roles.d.ts +1 -1
  125. package/lib/resources/roles.js +4 -4
  126. package/lib/resources/users.cjs +5 -5
  127. package/lib/resources/users.d.cts +2 -2
  128. package/lib/resources/users.d.ts +1 -1
  129. package/lib/resources/users.js +4 -4
  130. package/lib/resources/versions.cjs +5 -5
  131. package/lib/resources/versions.d.cts +2 -2
  132. package/lib/resources/versions.d.ts +1 -1
  133. package/lib/resources/versions.js +4 -4
  134. package/lib/static.cjs +6 -6
  135. package/lib/static.d.cts +1 -1
  136. package/lib/static.d.ts +1 -1
  137. package/lib/static.js +5 -5
  138. package/lib/version.cjs +4 -4
  139. package/lib/version.js +1 -1
  140. package/package.json +10 -11
  141. package/lib/chunk-3FP4NVLD.cjs.map +0 -1
  142. package/lib/chunk-4Z4U45XQ.js.map +0 -1
  143. package/lib/chunk-ELYBYKRM.cjs.map +0 -1
  144. package/lib/chunk-F2RLD5SN.cjs.map +0 -1
  145. package/lib/chunk-QRZGS4TB.js.map +0 -1
  146. package/lib/chunk-UB3WPGDV.js.map +0 -1
package/README.md CHANGED
@@ -2,14 +2,15 @@
2
2
 
3
3
  [![Version](https://img.shields.io/npm/v/@commercelayer/provisioning-sdk.svg)](https://npmjs.org/package/@commercelayer/provisioning-sdk)
4
4
  [![Downloads/week](https://img.shields.io/npm/dw/@commercelayer/provisioning-sdk.svg)](https://npmjs.org/package/@commercelayer/provisioning-sdk)
5
- [![License](https://img.shields.io/npm/l/@commercelayer/provisioning-sdk.svg)](https://github.com/commercelayer/commercelayer-sdk/blob/master/package.json)
6
- [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
7
- [![Release](https://github.com/commercelayer/commercelayer-sdk/actions/workflows/semantic-release.yml/badge.svg)](https://github.com/commercelayer/commercelayer-sdk/actions/workflows/semantic-release.yml)
8
- [![CodeQL](https://github.com/commercelayer/commercelayer-cli/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/commercelayer/commercelayer-cli/actions/workflows/codeql-analysis.yml)
5
+ [![License](https://img.shields.io/npm/l/@commercelayer/provisioning-sdk.svg)](https://github.com/commercelayer/commercelayer-sdk/blob/main/packages/provisioning-sdk/LICENSE)
6
+ [![Verify](https://github.com/commercelayer/commercelayer-sdk/actions/workflows/verify.yml/badge.svg)](https://github.com/commercelayer/commercelayer-sdk/actions/workflows/verify.yml)
7
+ [![CodeQL](https://github.com/commercelayer/commercelayer-sdk/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/commercelayer/commercelayer-sdk/actions/workflows/codeql-analysis.yml)
9
8
  [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript%205-%230074c1.svg)](https://www.typescriptlang.org/)
10
9
 
11
10
  A JavaScript Library wrapper that makes it quick and easy to interact with the [Commerce Layer Provisioning API](https://docs.commercelayer.io/provisioning).
12
11
 
12
+ > This package is generated and released from the [`commercelayer-sdk`](https://github.com/commercelayer/commercelayer-sdk) monorepo, alongside [`@commercelayer/sdk`](https://www.npmjs.com/package/@commercelayer/sdk). Both are produced by the same generator from the API’s own published schema.
13
+
13
14
  ## Table of contents
14
15
 
15
16
  - [Getting started](#getting-started)
@@ -474,23 +475,31 @@ In this case you can define a special function that takes care of refreshing the
474
475
 
475
476
  ## Contributors guide
476
477
 
477
- 1. Fork [this repository](https://github.com/commercelayer/provisioning-sdk) (learn how to do this [here](https://help.github.com/articles/fork-a-repo)).
478
+ 1. Fork [this repository](https://github.com/commercelayer/commercelayer-sdk) (learn how to do this [by reading the GitHub documentation](https://help.github.com/articles/fork-a-repo)).
478
479
 
479
480
  2. Clone the forked repository like so:
480
481
 
481
482
  ```shell
482
- git clone https://github.com/<your username>/provisioning-sdk.git && cd provisioning-sdk
483
+ git clone https://github.com/<your username>/commercelayer-sdk.git && cd commercelayer-sdk
484
+ ```
485
+
486
+ 3. Install the workspace from the repository root:
487
+
488
+ ```shell
489
+ pnpm install
483
490
  ```
484
491
 
485
- 3. Make your changes and create a pull request ([learn how to do this](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request)).
492
+ 4. Make your changes. Most of this package is generated from the API schema — anything you edit under `gen/` will be overwritten. Change the generator or `sdk.config.ts` instead, then run `pnpm generate` and commit the result.
493
+
494
+ 5. Create a pull request ([learn how to do this](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request)). Lint, types, both test suites and a check that generated output is reproducible run automatically.
486
495
 
487
- 4. Someone will attend to your pull request and provide some feedback.
496
+ 6. Someone will attend to your pull request and provide some feedback.
488
497
 
489
498
  ## Need help?
490
499
 
491
500
  - Join [Commerce Layer's Discord community](https://discord.gg/commercelayer).
492
501
  - Ping us on [Bluesky](https://bsky.app/profile/commercelayer.io), [X (formerly Twitter)](https://x.com/commercelayer), or [LinkedIn](https://www.linkedin.com/company/commerce-layer).
493
- - Is there a bug? Create an [issue](https://github.com/commercelayer/provisioning-sdk/issues) on this repository.
502
+ - Is there a bug? Create an [issue](https://github.com/commercelayer/commercelayer-sdk/issues) on this repository.
494
503
 
495
504
  ## License
496
505