@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.
- package/README.md +18 -9
- package/lib/{api-BY0jb79k.d.cts → api-C4jp_9vb.d.cts} +489 -480
- package/lib/{api-e4p3q-SB.d.ts → api-C_E9e1ea.d.ts} +489 -480
- package/lib/api.cjs +23 -23
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +13 -13
- package/lib/binding.cjs +3 -3
- package/lib/binding.d.cts +2 -2
- package/lib/binding.d.ts +2 -2
- package/lib/binding.js +2 -2
- package/lib/bundle.cjs +17 -17
- package/lib/bundle.d.cts +1 -1
- package/lib/bundle.d.ts +1 -1
- package/lib/bundle.js +15 -15
- package/lib/{chunk-63TTSE4U.cjs → chunk-3ILNEP2F.cjs} +26 -26
- package/lib/{chunk-63TTSE4U.cjs.map → chunk-3ILNEP2F.cjs.map} +1 -1
- package/lib/{chunk-C6AOOHOR.cjs → chunk-3NDVX4SE.cjs} +4 -4
- package/lib/{chunk-C6AOOHOR.cjs.map → chunk-3NDVX4SE.cjs.map} +1 -1
- package/lib/{chunk-DTD2FIJ3.js → chunk-3PJNJ7B6.js} +3 -3
- package/lib/{chunk-DTD2FIJ3.js.map → chunk-3PJNJ7B6.js.map} +1 -1
- package/lib/{chunk-ELYBYKRM.cjs → chunk-6FB54J7W.cjs} +4 -4
- package/lib/chunk-6FB54J7W.cjs.map +1 -0
- package/lib/{chunk-5KN7B3T2.cjs → chunk-6MXIGF2G.cjs} +10 -10
- package/lib/{chunk-5KN7B3T2.cjs.map → chunk-6MXIGF2G.cjs.map} +1 -1
- package/lib/{chunk-YYHZPR4Z.js → chunk-7YEOUGXO.js} +3 -3
- package/lib/{chunk-YYHZPR4Z.js.map → chunk-7YEOUGXO.js.map} +1 -1
- package/lib/{chunk-E2ERI2EX.js → chunk-CWXGTX7W.js} +4 -4
- package/lib/{chunk-E2ERI2EX.js.map → chunk-CWXGTX7W.js.map} +1 -1
- package/lib/{chunk-HAZ53WDW.cjs → chunk-DYMRH6LP.cjs} +4 -4
- package/lib/{chunk-HAZ53WDW.cjs.map → chunk-DYMRH6LP.cjs.map} +1 -1
- package/lib/{chunk-FWF7HBWB.js → chunk-ECGUWRRG.js} +3 -3
- package/lib/{chunk-FWF7HBWB.js.map → chunk-ECGUWRRG.js.map} +1 -1
- package/lib/{chunk-F2RLD5SN.cjs → chunk-EVDEBFHZ.cjs} +13 -8
- package/lib/chunk-EVDEBFHZ.cjs.map +1 -0
- package/lib/{chunk-BWDFMGX6.cjs → chunk-FMHTNUZ4.cjs} +4 -4
- package/lib/{chunk-BWDFMGX6.cjs.map → chunk-FMHTNUZ4.cjs.map} +1 -1
- package/lib/{chunk-HOL7SMFN.cjs → chunk-FRLV5YFL.cjs} +4 -4
- package/lib/{chunk-HOL7SMFN.cjs.map → chunk-FRLV5YFL.cjs.map} +1 -1
- package/lib/{chunk-UYATAIX7.js → chunk-G4JBHI2H.js} +3 -3
- package/lib/{chunk-UYATAIX7.js.map → chunk-G4JBHI2H.js.map} +1 -1
- package/lib/{chunk-4Z4U45XQ.js → chunk-GHXKZEH7.js} +8 -3
- package/lib/chunk-GHXKZEH7.js.map +1 -0
- package/lib/{chunk-35GNS3WW.js → chunk-I4LPOTDO.js} +3 -3
- package/lib/{chunk-35GNS3WW.js.map → chunk-I4LPOTDO.js.map} +1 -1
- package/lib/{chunk-VAL4CE5R.js → chunk-IRFPCJTG.js} +3 -3
- package/lib/{chunk-VAL4CE5R.js.map → chunk-IRFPCJTG.js.map} +1 -1
- package/lib/{chunk-3XLKYXM6.cjs → chunk-KO4FQ4V2.cjs} +4 -4
- package/lib/{chunk-3XLKYXM6.cjs.map → chunk-KO4FQ4V2.cjs.map} +1 -1
- package/lib/{chunk-U2CAAK2J.js → chunk-KT6LCJJQ.js} +3 -3
- package/lib/{chunk-U2CAAK2J.js.map → chunk-KT6LCJJQ.js.map} +1 -1
- package/lib/{chunk-FOU52N6P.js → chunk-LTIWXCVE.js} +3 -3
- package/lib/{chunk-FOU52N6P.js.map → chunk-LTIWXCVE.js.map} +1 -1
- package/lib/{chunk-W6XILXYS.cjs → chunk-MHV7FMLE.cjs} +4 -4
- package/lib/{chunk-W6XILXYS.cjs.map → chunk-MHV7FMLE.cjs.map} +1 -1
- package/lib/{chunk-Z4IAVXOO.cjs → chunk-NDKGLF4B.cjs} +4 -4
- package/lib/{chunk-Z4IAVXOO.cjs.map → chunk-NDKGLF4B.cjs.map} +1 -1
- package/lib/{chunk-CFU5DNH2.cjs → chunk-OROPOAHK.cjs} +4 -4
- package/lib/{chunk-CFU5DNH2.cjs.map → chunk-OROPOAHK.cjs.map} +1 -1
- package/lib/{chunk-UB3WPGDV.js → chunk-SQLX22US.js} +3 -3
- package/lib/chunk-SQLX22US.js.map +1 -0
- package/lib/{chunk-3ELZDTFF.js → chunk-STPXKF53.js} +4 -4
- package/lib/{chunk-3ELZDTFF.js.map → chunk-STPXKF53.js.map} +1 -1
- package/lib/{chunk-RDLVNJEW.js → chunk-T2U6MUX4.js} +3 -3
- package/lib/{chunk-RDLVNJEW.js.map → chunk-T2U6MUX4.js.map} +1 -1
- package/lib/{chunk-CLOSZJSZ.cjs → chunk-TXONK7R5.cjs} +4 -4
- package/lib/{chunk-CLOSZJSZ.cjs.map → chunk-TXONK7R5.cjs.map} +1 -1
- package/lib/{chunk-WRVLCJQZ.cjs → chunk-TY46WNR6.cjs} +8 -8
- package/lib/{chunk-WRVLCJQZ.cjs.map → chunk-TY46WNR6.cjs.map} +1 -1
- package/lib/{chunk-7OPCEEJV.cjs → chunk-UILXNOZE.cjs} +4 -4
- package/lib/{chunk-7OPCEEJV.cjs.map → chunk-UILXNOZE.cjs.map} +1 -1
- package/lib/{chunk-GES5UXTI.js → chunk-WMUY7Z2Q.js} +3 -3
- package/lib/{chunk-GES5UXTI.js.map → chunk-WMUY7Z2Q.js.map} +1 -1
- package/lib/{chunk-3FP4NVLD.cjs → chunk-XS6QLJHG.cjs} +3 -3
- package/lib/chunk-XS6QLJHG.cjs.map +1 -0
- package/lib/{chunk-6I5KGZAU.js → chunk-YUNEDDTL.js} +14 -14
- package/lib/{chunk-6I5KGZAU.js.map → chunk-YUNEDDTL.js.map} +1 -1
- package/lib/{chunk-QRZGS4TB.js → chunk-ZWZHZ4SU.js} +3 -3
- package/lib/chunk-ZWZHZ4SU.js.map +1 -0
- package/lib/commercelayer.cjs +10 -10
- package/lib/commercelayer.d.cts +1 -1
- package/lib/commercelayer.d.ts +1 -1
- package/lib/commercelayer.js +4 -4
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/index.cjs +22 -22
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +17 -17
- package/lib/index.js.map +1 -1
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/resources/api_credentials.cjs +5 -5
- package/lib/resources/api_credentials.d.cts +2 -2
- package/lib/resources/api_credentials.d.ts +1 -1
- package/lib/resources/api_credentials.js +4 -4
- package/lib/resources/application_memberships.cjs +5 -5
- package/lib/resources/application_memberships.d.cts +2 -2
- package/lib/resources/application_memberships.d.ts +1 -1
- package/lib/resources/application_memberships.js +4 -4
- package/lib/resources/identity_providers.cjs +5 -5
- package/lib/resources/identity_providers.d.cts +2 -2
- package/lib/resources/identity_providers.d.ts +1 -1
- package/lib/resources/identity_providers.js +4 -4
- package/lib/resources/membership_profiles.cjs +5 -5
- package/lib/resources/membership_profiles.d.cts +2 -2
- package/lib/resources/membership_profiles.d.ts +1 -1
- package/lib/resources/membership_profiles.js +4 -4
- package/lib/resources/memberships.cjs +5 -5
- package/lib/resources/memberships.d.cts +2 -2
- package/lib/resources/memberships.d.ts +1 -1
- package/lib/resources/memberships.js +4 -4
- package/lib/resources/organizations.cjs +5 -5
- package/lib/resources/organizations.d.cts +2 -2
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/organizations.js +4 -4
- package/lib/resources/permissions.cjs +5 -5
- package/lib/resources/permissions.d.cts +2 -2
- package/lib/resources/permissions.d.ts +1 -1
- package/lib/resources/permissions.js +4 -4
- package/lib/resources/roles.cjs +5 -5
- package/lib/resources/roles.d.cts +2 -2
- package/lib/resources/roles.d.ts +1 -1
- package/lib/resources/roles.js +4 -4
- package/lib/resources/users.cjs +5 -5
- package/lib/resources/users.d.cts +2 -2
- package/lib/resources/users.d.ts +1 -1
- package/lib/resources/users.js +4 -4
- package/lib/resources/versions.cjs +5 -5
- package/lib/resources/versions.d.cts +2 -2
- package/lib/resources/versions.d.ts +1 -1
- package/lib/resources/versions.js +4 -4
- package/lib/static.cjs +6 -6
- package/lib/static.d.cts +1 -1
- package/lib/static.d.ts +1 -1
- package/lib/static.js +5 -5
- package/lib/version.cjs +4 -4
- package/lib/version.js +1 -1
- package/package.json +10 -11
- package/lib/chunk-3FP4NVLD.cjs.map +0 -1
- package/lib/chunk-4Z4U45XQ.js.map +0 -1
- package/lib/chunk-ELYBYKRM.cjs.map +0 -1
- package/lib/chunk-F2RLD5SN.cjs.map +0 -1
- package/lib/chunk-QRZGS4TB.js.map +0 -1
- package/lib/chunk-UB3WPGDV.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://npmjs.org/package/@commercelayer/provisioning-sdk)
|
|
4
4
|
[](https://npmjs.org/package/@commercelayer/provisioning-sdk)
|
|
5
|
-
[](https://github.com/commercelayer/commercelayer-sdk/blob/
|
|
6
|
-
[](https://github.com/commercelayer/commercelayer-cli/actions/workflows/codeql-analysis.yml)
|
|
5
|
+
[](https://github.com/commercelayer/commercelayer-sdk/blob/main/packages/provisioning-sdk/LICENSE)
|
|
6
|
+
[](https://github.com/commercelayer/commercelayer-sdk/actions/workflows/verify.yml)
|
|
7
|
+
[](https://github.com/commercelayer/commercelayer-sdk/actions/workflows/codeql-analysis.yml)
|
|
9
8
|
[](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/
|
|
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>/
|
|
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
|
-
|
|
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
|
-
|
|
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/
|
|
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
|
|