@code.store/arcxp-sdk-ts 5.1.1 → 5.1.3
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/dist/api/index.d.ts +2 -1
- package/dist/api/sales/index.d.ts +6 -2
- package/dist/api/sales/types.d.ts +14 -0
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -686,10 +686,11 @@ class ArcSales extends ArcAbstractAPI {
|
|
|
686
686
|
constructor(options) {
|
|
687
687
|
super({ ...options, apiPath: 'sales/api/v1' });
|
|
688
688
|
}
|
|
689
|
-
async migrate(payload) {
|
|
689
|
+
async migrate(params, payload) {
|
|
690
690
|
const form = new FormData();
|
|
691
691
|
form.append('file', JSON.stringify(payload), { filename: 'subs.json', contentType: 'application/json' });
|
|
692
692
|
const { data } = await this.client.post('/migrate', form, {
|
|
693
|
+
params,
|
|
693
694
|
headers: {
|
|
694
695
|
...form.getHeaders(),
|
|
695
696
|
},
|
|
@@ -697,6 +698,15 @@ class ArcSales extends ArcAbstractAPI {
|
|
|
697
698
|
return data;
|
|
698
699
|
}
|
|
699
700
|
}
|
|
701
|
+
class ArcSalesV2 extends ArcAbstractAPI {
|
|
702
|
+
constructor(options) {
|
|
703
|
+
super({ ...options, apiPath: 'sales/api/v2' });
|
|
704
|
+
}
|
|
705
|
+
async createEnterpriseGroup(payload) {
|
|
706
|
+
const { data } = await this.client.post('/subscriptions/enterprise', payload);
|
|
707
|
+
return data;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
700
710
|
|
|
701
711
|
class ArcSigningService extends ArcAbstractAPI {
|
|
702
712
|
constructor(options) {
|
|
@@ -829,6 +839,7 @@ const ArcAPI = (options) => {
|
|
|
829
839
|
Redirect: new ArcRedirect(options),
|
|
830
840
|
MigrationCenter: new ArcMigrationCenter(options),
|
|
831
841
|
Sales: new ArcSales(options),
|
|
842
|
+
SalesV2: new ArcSalesV2(options),
|
|
832
843
|
Site: new ArcSite(options),
|
|
833
844
|
Websked: new ArcWebsked(options),
|
|
834
845
|
Content: new ArcContent(options),
|