@arrowsphere/api-client 3.61.0 → 3.62.0
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/CHANGELOG.md +5 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/partner/index.d.ts +1 -0
- package/build/partner/index.js +18 -0
- package/build/partner/partnerClient.d.ts +5 -0
- package/build/partner/partnerClient.js +16 -0
- package/build/publicApiClient.d.ts +6 -0
- package/build/publicApiClient.js +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [3.62.0] - 2023-11-08
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- add partners delete endpoint
|
|
10
|
+
|
|
6
11
|
## [3.61.0] - 2023-11-02
|
|
7
12
|
|
|
8
13
|
### Changed
|
package/build/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './pagination';
|
|
|
15
15
|
export * from './licenses/';
|
|
16
16
|
export * from './notifications/';
|
|
17
17
|
export * from './orders/';
|
|
18
|
+
export * from './partner';
|
|
18
19
|
export * from './publicApiClient';
|
|
19
20
|
export * from './publicGraphQLClient';
|
|
20
21
|
export * from './shared/';
|
package/build/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __exportStar(require("./pagination"), exports);
|
|
|
44
44
|
__exportStar(require("./licenses/"), exports);
|
|
45
45
|
__exportStar(require("./notifications/"), exports);
|
|
46
46
|
__exportStar(require("./orders/"), exports);
|
|
47
|
+
__exportStar(require("./partner"), exports);
|
|
47
48
|
__exportStar(require("./publicApiClient"), exports);
|
|
48
49
|
__exportStar(require("./publicGraphQLClient"), exports);
|
|
49
50
|
__exportStar(require("./shared/"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './partnerClient';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./partnerClient"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PartnerClient = void 0;
|
|
4
|
+
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
|
+
class PartnerClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.basePath = '/partners';
|
|
9
|
+
}
|
|
10
|
+
async deletePartner(partnerReference, parameters = {}) {
|
|
11
|
+
this.path = `/${partnerReference}`;
|
|
12
|
+
return this.delete(parameters);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.PartnerClient = PartnerClient;
|
|
16
|
+
//# sourceMappingURL=partnerClient.js.map
|
|
@@ -14,6 +14,7 @@ import { CatalogClient } from './catalog';
|
|
|
14
14
|
import { UserClient } from './user';
|
|
15
15
|
import { NotificationsClient } from './notifications';
|
|
16
16
|
import { RegisterClient, StandardsClient } from './security';
|
|
17
|
+
import { PartnerClient } from './partner';
|
|
17
18
|
/**
|
|
18
19
|
* Public API Client class, should be the main entry point for your calls
|
|
19
20
|
*/
|
|
@@ -25,6 +26,11 @@ export declare class PublicApiClient extends AbstractRestfulClient {
|
|
|
25
26
|
* @returns {@link CustomersClient}
|
|
26
27
|
*/
|
|
27
28
|
getCustomersClient(configuration?: ConfigurationsClient): CustomersClient;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new {@link PartnerClient} instance and returns it
|
|
31
|
+
* @returns {@link PartnerClient}
|
|
32
|
+
*/
|
|
33
|
+
getPartnerClient(configuration?: ConfigurationsClient): PartnerClient;
|
|
28
34
|
/**
|
|
29
35
|
* Creates a new {@link WhoAmIClient} instance and returns it
|
|
30
36
|
* @returns {@link WhoAmIClient}
|
package/build/publicApiClient.js
CHANGED
|
@@ -17,6 +17,7 @@ const catalog_1 = require("./catalog");
|
|
|
17
17
|
const user_1 = require("./user");
|
|
18
18
|
const notifications_1 = require("./notifications");
|
|
19
19
|
const security_1 = require("./security");
|
|
20
|
+
const partner_1 = require("./partner");
|
|
20
21
|
/**
|
|
21
22
|
* Public API Client class, should be the main entry point for your calls
|
|
22
23
|
*/
|
|
@@ -41,6 +42,15 @@ class PublicApiClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
41
42
|
this.applyConfig(client);
|
|
42
43
|
return client;
|
|
43
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Creates a new {@link PartnerClient} instance and returns it
|
|
47
|
+
* @returns {@link PartnerClient}
|
|
48
|
+
*/
|
|
49
|
+
getPartnerClient(configuration) {
|
|
50
|
+
const client = new partner_1.PartnerClient(configuration);
|
|
51
|
+
this.applyConfig(client);
|
|
52
|
+
return client;
|
|
53
|
+
}
|
|
44
54
|
/**
|
|
45
55
|
* Creates a new {@link WhoAmIClient} instance and returns it
|
|
46
56
|
* @returns {@link WhoAmIClient}
|
package/package.json
CHANGED