@chrt-inc/typescript-sdk 0.0.170-c → 0.0.170-d
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/cjs/Client.d.ts +3 -3
- package/dist/cjs/Client.js +5 -5
- package/dist/cjs/api/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/index.js +3 -3
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/Client.js +13 -13
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -3
- package/dist/esm/Client.mjs +5 -5
- package/dist/esm/api/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/index.mjs +2 -2
- package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/Client.mjs +11 -11
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +7 -7
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/ShipperNotificationPreferencesClientCreate1.js +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/index.js +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/ShipperNotificationPreferencesClientCreate1.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/index.mjs +0 -0
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Root } from "./api/resources/root/client/Client.js";
|
|
|
7
7
|
import { Dev } from "./api/resources/dev/client/Client.js";
|
|
8
8
|
import { Directory } from "./api/resources/directory/client/Client.js";
|
|
9
9
|
import { Notifications } from "./api/resources/notifications/client/Client.js";
|
|
10
|
-
import {
|
|
10
|
+
import { NotificationsShipper } from "./api/resources/notificationsShipper/client/Client.js";
|
|
11
11
|
import { OortConnections } from "./api/resources/oortConnections/client/Client.js";
|
|
12
12
|
import { OortCourierPayDriverLineItemGroups } from "./api/resources/oortCourierPayDriverLineItemGroups/client/Client.js";
|
|
13
13
|
import { OortCourierPayDriverPayouts } from "./api/resources/oortCourierPayDriverPayouts/client/Client.js";
|
|
@@ -51,7 +51,7 @@ export declare class ChrtClient {
|
|
|
51
51
|
protected _dev: Dev | undefined;
|
|
52
52
|
protected _directory: Directory | undefined;
|
|
53
53
|
protected _notifications: Notifications | undefined;
|
|
54
|
-
protected
|
|
54
|
+
protected _notificationsShipper: NotificationsShipper | undefined;
|
|
55
55
|
protected _oortConnections: OortConnections | undefined;
|
|
56
56
|
protected _oortCourierPayDriverLineItemGroups: OortCourierPayDriverLineItemGroups | undefined;
|
|
57
57
|
protected _oortCourierPayDriverPayouts: OortCourierPayDriverPayouts | undefined;
|
|
@@ -73,7 +73,7 @@ export declare class ChrtClient {
|
|
|
73
73
|
get dev(): Dev;
|
|
74
74
|
get directory(): Directory;
|
|
75
75
|
get notifications(): Notifications;
|
|
76
|
-
get
|
|
76
|
+
get notificationsShipper(): NotificationsShipper;
|
|
77
77
|
get oortConnections(): OortConnections;
|
|
78
78
|
get oortCourierPayDriverLineItemGroups(): OortCourierPayDriverLineItemGroups;
|
|
79
79
|
get oortCourierPayDriverPayouts(): OortCourierPayDriverPayouts;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -43,7 +43,7 @@ const Client_js_1 = require("./api/resources/root/client/Client.js");
|
|
|
43
43
|
const Client_js_2 = require("./api/resources/dev/client/Client.js");
|
|
44
44
|
const Client_js_3 = require("./api/resources/directory/client/Client.js");
|
|
45
45
|
const Client_js_4 = require("./api/resources/notifications/client/Client.js");
|
|
46
|
-
const Client_js_5 = require("./api/resources/
|
|
46
|
+
const Client_js_5 = require("./api/resources/notificationsShipper/client/Client.js");
|
|
47
47
|
const Client_js_6 = require("./api/resources/oortConnections/client/Client.js");
|
|
48
48
|
const Client_js_7 = require("./api/resources/oortCourierPayDriverLineItemGroups/client/Client.js");
|
|
49
49
|
const Client_js_8 = require("./api/resources/oortCourierPayDriverPayouts/client/Client.js");
|
|
@@ -65,8 +65,8 @@ class ChrtClient {
|
|
|
65
65
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
68
|
-
"X-Fern-SDK-Version": "0.0.170-
|
|
69
|
-
"User-Agent": "@chrt-inc/typescript-sdk/0.0.170-
|
|
68
|
+
"X-Fern-SDK-Version": "0.0.170-d",
|
|
69
|
+
"User-Agent": "@chrt-inc/typescript-sdk/0.0.170-d",
|
|
70
70
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
71
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
72
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -87,9 +87,9 @@ class ChrtClient {
|
|
|
87
87
|
var _a;
|
|
88
88
|
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_4.Notifications(this._options)));
|
|
89
89
|
}
|
|
90
|
-
get
|
|
90
|
+
get notificationsShipper() {
|
|
91
91
|
var _a;
|
|
92
|
-
return ((_a = this.
|
|
92
|
+
return ((_a = this._notificationsShipper) !== null && _a !== void 0 ? _a : (this._notificationsShipper = new Client_js_5.NotificationsShipper(this._options)));
|
|
93
93
|
}
|
|
94
94
|
get oortConnections() {
|
|
95
95
|
var _a;
|
|
@@ -3,7 +3,7 @@ export * from "./root/types/index.js";
|
|
|
3
3
|
export * as dev from "./dev/index.js";
|
|
4
4
|
export * as directory from "./directory/index.js";
|
|
5
5
|
export * as notifications from "./notifications/index.js";
|
|
6
|
-
export * as
|
|
6
|
+
export * as notificationsShipper from "./notificationsShipper/index.js";
|
|
7
7
|
export * as oortConnections from "./oortConnections/index.js";
|
|
8
8
|
export * as oortCourierPayDriverLineItemGroups from "./oortCourierPayDriverLineItemGroups/index.js";
|
|
9
9
|
export * as oortCourierPayDriverPayouts from "./oortCourierPayDriverPayouts/index.js";
|
|
@@ -23,7 +23,7 @@ export * as users from "./users/index.js";
|
|
|
23
23
|
export * from "./dev/client/requests/index.js";
|
|
24
24
|
export * from "./directory/client/requests/index.js";
|
|
25
25
|
export * from "./notifications/client/requests/index.js";
|
|
26
|
-
export * from "./
|
|
26
|
+
export * from "./notificationsShipper/client/requests/index.js";
|
|
27
27
|
export * from "./oortConnections/client/requests/index.js";
|
|
28
28
|
export * from "./oortCourierPayDriverLineItemGroups/client/requests/index.js";
|
|
29
29
|
export * from "./oortCourierPayDriverPayouts/client/requests/index.js";
|
|
@@ -36,13 +36,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.users = exports.payments = exports.orgs = exports.oortTaskGroups = exports.oortShipperContactInfo = exports.oortOrgProfiles = exports.oortOrgConnectionInfos = exports.oortOrders = exports.oortOffChrtShipperOrgConnectionInfo = exports.oortMilestones = exports.oortMilestoneNotificationPreferences = exports.oortDrivers = exports.oortCourierPayDriverRateSheets = exports.oortCourierPayDriverPayouts = exports.oortCourierPayDriverLineItemGroups = exports.oortConnections = exports.
|
|
39
|
+
exports.users = exports.payments = exports.orgs = exports.oortTaskGroups = exports.oortShipperContactInfo = exports.oortOrgProfiles = exports.oortOrgConnectionInfos = exports.oortOrders = exports.oortOffChrtShipperOrgConnectionInfo = exports.oortMilestones = exports.oortMilestoneNotificationPreferences = exports.oortDrivers = exports.oortCourierPayDriverRateSheets = exports.oortCourierPayDriverPayouts = exports.oortCourierPayDriverLineItemGroups = exports.oortConnections = exports.notificationsShipper = exports.notifications = exports.directory = exports.dev = exports.root = void 0;
|
|
40
40
|
exports.root = __importStar(require("./root/index.js"));
|
|
41
41
|
__exportStar(require("./root/types/index.js"), exports);
|
|
42
42
|
exports.dev = __importStar(require("./dev/index.js"));
|
|
43
43
|
exports.directory = __importStar(require("./directory/index.js"));
|
|
44
44
|
exports.notifications = __importStar(require("./notifications/index.js"));
|
|
45
|
-
exports.
|
|
45
|
+
exports.notificationsShipper = __importStar(require("./notificationsShipper/index.js"));
|
|
46
46
|
exports.oortConnections = __importStar(require("./oortConnections/index.js"));
|
|
47
47
|
exports.oortCourierPayDriverLineItemGroups = __importStar(require("./oortCourierPayDriverLineItemGroups/index.js"));
|
|
48
48
|
exports.oortCourierPayDriverPayouts = __importStar(require("./oortCourierPayDriverPayouts/index.js"));
|
|
@@ -62,7 +62,7 @@ exports.users = __importStar(require("./users/index.js"));
|
|
|
62
62
|
__exportStar(require("./dev/client/requests/index.js"), exports);
|
|
63
63
|
__exportStar(require("./directory/client/requests/index.js"), exports);
|
|
64
64
|
__exportStar(require("./notifications/client/requests/index.js"), exports);
|
|
65
|
-
__exportStar(require("./
|
|
65
|
+
__exportStar(require("./notificationsShipper/client/requests/index.js"), exports);
|
|
66
66
|
__exportStar(require("./oortConnections/client/requests/index.js"), exports);
|
|
67
67
|
__exportStar(require("./oortCourierPayDriverLineItemGroups/client/requests/index.js"), exports);
|
|
68
68
|
__exportStar(require("./oortCourierPayDriverPayouts/client/requests/index.js"), exports);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
6
|
import * as Chrt from "../../../index.js";
|
|
7
|
-
export declare namespace
|
|
7
|
+
export declare namespace NotificationsShipper {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
@@ -25,33 +25,33 @@ export declare namespace NotificationsShipperNotificationPreferences {
|
|
|
25
25
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
export declare class
|
|
29
|
-
protected readonly _options:
|
|
30
|
-
constructor(_options?:
|
|
28
|
+
export declare class NotificationsShipper {
|
|
29
|
+
protected readonly _options: NotificationsShipper.Options;
|
|
30
|
+
constructor(_options?: NotificationsShipper.Options);
|
|
31
31
|
/**
|
|
32
32
|
* Get notification preferences by org id from jwt
|
|
33
33
|
*
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {NotificationsShipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.
|
|
37
|
+
* await client.notificationsShipper.getNotificationsPreferencesByOrgId()
|
|
38
38
|
*/
|
|
39
|
-
|
|
40
|
-
private
|
|
39
|
+
getNotificationsPreferencesByOrgId(requestOptions?: NotificationsShipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperNotificationPreferences1>;
|
|
40
|
+
private __getNotificationsPreferencesByOrgId;
|
|
41
41
|
/**
|
|
42
42
|
* Create/Update notification preferences for org in jwt
|
|
43
43
|
*
|
|
44
44
|
* @param {Chrt.ShipperNotificationPreferencesClientCreate1} request
|
|
45
|
-
* @param {
|
|
45
|
+
* @param {NotificationsShipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
|
-
* await client.
|
|
50
|
+
* await client.notificationsShipper.postNotificationsPreferencesByOrgId({
|
|
51
51
|
* schema_version: 1
|
|
52
52
|
* })
|
|
53
53
|
*/
|
|
54
|
-
|
|
55
|
-
private
|
|
54
|
+
postNotificationsPreferencesByOrgId(request: Chrt.ShipperNotificationPreferencesClientCreate1, requestOptions?: NotificationsShipper.RequestOptions): core.HttpResponsePromise<string>;
|
|
55
|
+
private __postNotificationsPreferencesByOrgId;
|
|
56
56
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
57
57
|
}
|
|
@@ -45,28 +45,28 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.
|
|
48
|
+
exports.NotificationsShipper = void 0;
|
|
49
49
|
const environments = __importStar(require("../../../../environments.js"));
|
|
50
50
|
const core = __importStar(require("../../../../core/index.js"));
|
|
51
51
|
const Chrt = __importStar(require("../../../index.js"));
|
|
52
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
-
class
|
|
54
|
+
class NotificationsShipper {
|
|
55
55
|
constructor(_options = {}) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* Get notification preferences by org id from jwt
|
|
60
60
|
*
|
|
61
|
-
* @param {
|
|
61
|
+
* @param {NotificationsShipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.
|
|
64
|
+
* await client.notificationsShipper.getNotificationsPreferencesByOrgId()
|
|
65
65
|
*/
|
|
66
|
-
|
|
67
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
66
|
+
getNotificationsPreferencesByOrgId(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__getNotificationsPreferencesByOrgId(requestOptions));
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
__getNotificationsPreferencesByOrgId(requestOptions) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
var _a, _b, _c, _d;
|
|
72
72
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -108,19 +108,19 @@ class NotificationsShipperNotificationPreferences {
|
|
|
108
108
|
* Create/Update notification preferences for org in jwt
|
|
109
109
|
*
|
|
110
110
|
* @param {Chrt.ShipperNotificationPreferencesClientCreate1} request
|
|
111
|
-
* @param {
|
|
111
|
+
* @param {NotificationsShipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
112
|
*
|
|
113
113
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
114
114
|
*
|
|
115
115
|
* @example
|
|
116
|
-
* await client.
|
|
116
|
+
* await client.notificationsShipper.postNotificationsPreferencesByOrgId({
|
|
117
117
|
* schema_version: 1
|
|
118
118
|
* })
|
|
119
119
|
*/
|
|
120
|
-
|
|
121
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
120
|
+
postNotificationsPreferencesByOrgId(request, requestOptions) {
|
|
121
|
+
return core.HttpResponsePromise.fromPromise(this.__postNotificationsPreferencesByOrgId(request, requestOptions));
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
__postNotificationsPreferencesByOrgId(request, requestOptions) {
|
|
124
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
125
|
var _a, _b, _c, _d;
|
|
126
126
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -176,4 +176,4 @@ class NotificationsShipperNotificationPreferences {
|
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
exports.
|
|
179
|
+
exports.NotificationsShipper = NotificationsShipper;
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.170-
|
|
1
|
+
export declare const SDK_VERSION = "0.0.170-d";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ import { Root } from "./api/resources/root/client/Client.mjs";
|
|
|
7
7
|
import { Dev } from "./api/resources/dev/client/Client.mjs";
|
|
8
8
|
import { Directory } from "./api/resources/directory/client/Client.mjs";
|
|
9
9
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { NotificationsShipper } from "./api/resources/notificationsShipper/client/Client.mjs";
|
|
11
11
|
import { OortConnections } from "./api/resources/oortConnections/client/Client.mjs";
|
|
12
12
|
import { OortCourierPayDriverLineItemGroups } from "./api/resources/oortCourierPayDriverLineItemGroups/client/Client.mjs";
|
|
13
13
|
import { OortCourierPayDriverPayouts } from "./api/resources/oortCourierPayDriverPayouts/client/Client.mjs";
|
|
@@ -51,7 +51,7 @@ export declare class ChrtClient {
|
|
|
51
51
|
protected _dev: Dev | undefined;
|
|
52
52
|
protected _directory: Directory | undefined;
|
|
53
53
|
protected _notifications: Notifications | undefined;
|
|
54
|
-
protected
|
|
54
|
+
protected _notificationsShipper: NotificationsShipper | undefined;
|
|
55
55
|
protected _oortConnections: OortConnections | undefined;
|
|
56
56
|
protected _oortCourierPayDriverLineItemGroups: OortCourierPayDriverLineItemGroups | undefined;
|
|
57
57
|
protected _oortCourierPayDriverPayouts: OortCourierPayDriverPayouts | undefined;
|
|
@@ -73,7 +73,7 @@ export declare class ChrtClient {
|
|
|
73
73
|
get dev(): Dev;
|
|
74
74
|
get directory(): Directory;
|
|
75
75
|
get notifications(): Notifications;
|
|
76
|
-
get
|
|
76
|
+
get notificationsShipper(): NotificationsShipper;
|
|
77
77
|
get oortConnections(): OortConnections;
|
|
78
78
|
get oortCourierPayDriverLineItemGroups(): OortCourierPayDriverLineItemGroups;
|
|
79
79
|
get oortCourierPayDriverPayouts(): OortCourierPayDriverPayouts;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { Root } from "./api/resources/root/client/Client.mjs";
|
|
|
7
7
|
import { Dev } from "./api/resources/dev/client/Client.mjs";
|
|
8
8
|
import { Directory } from "./api/resources/directory/client/Client.mjs";
|
|
9
9
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { NotificationsShipper } from "./api/resources/notificationsShipper/client/Client.mjs";
|
|
11
11
|
import { OortConnections } from "./api/resources/oortConnections/client/Client.mjs";
|
|
12
12
|
import { OortCourierPayDriverLineItemGroups } from "./api/resources/oortCourierPayDriverLineItemGroups/client/Client.mjs";
|
|
13
13
|
import { OortCourierPayDriverPayouts } from "./api/resources/oortCourierPayDriverPayouts/client/Client.mjs";
|
|
@@ -29,8 +29,8 @@ export class ChrtClient {
|
|
|
29
29
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
30
30
|
"X-Fern-Language": "JavaScript",
|
|
31
31
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
32
|
-
"X-Fern-SDK-Version": "0.0.170-
|
|
33
|
-
"User-Agent": "@chrt-inc/typescript-sdk/0.0.170-
|
|
32
|
+
"X-Fern-SDK-Version": "0.0.170-d",
|
|
33
|
+
"User-Agent": "@chrt-inc/typescript-sdk/0.0.170-d",
|
|
34
34
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
35
35
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
36
36
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -51,9 +51,9 @@ export class ChrtClient {
|
|
|
51
51
|
var _a;
|
|
52
52
|
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Notifications(this._options)));
|
|
53
53
|
}
|
|
54
|
-
get
|
|
54
|
+
get notificationsShipper() {
|
|
55
55
|
var _a;
|
|
56
|
-
return ((_a = this.
|
|
56
|
+
return ((_a = this._notificationsShipper) !== null && _a !== void 0 ? _a : (this._notificationsShipper = new NotificationsShipper(this._options)));
|
|
57
57
|
}
|
|
58
58
|
get oortConnections() {
|
|
59
59
|
var _a;
|
|
@@ -3,7 +3,7 @@ export * from "./root/types/index.mjs";
|
|
|
3
3
|
export * as dev from "./dev/index.mjs";
|
|
4
4
|
export * as directory from "./directory/index.mjs";
|
|
5
5
|
export * as notifications from "./notifications/index.mjs";
|
|
6
|
-
export * as
|
|
6
|
+
export * as notificationsShipper from "./notificationsShipper/index.mjs";
|
|
7
7
|
export * as oortConnections from "./oortConnections/index.mjs";
|
|
8
8
|
export * as oortCourierPayDriverLineItemGroups from "./oortCourierPayDriverLineItemGroups/index.mjs";
|
|
9
9
|
export * as oortCourierPayDriverPayouts from "./oortCourierPayDriverPayouts/index.mjs";
|
|
@@ -23,7 +23,7 @@ export * as users from "./users/index.mjs";
|
|
|
23
23
|
export * from "./dev/client/requests/index.mjs";
|
|
24
24
|
export * from "./directory/client/requests/index.mjs";
|
|
25
25
|
export * from "./notifications/client/requests/index.mjs";
|
|
26
|
-
export * from "./
|
|
26
|
+
export * from "./notificationsShipper/client/requests/index.mjs";
|
|
27
27
|
export * from "./oortConnections/client/requests/index.mjs";
|
|
28
28
|
export * from "./oortCourierPayDriverLineItemGroups/client/requests/index.mjs";
|
|
29
29
|
export * from "./oortCourierPayDriverPayouts/client/requests/index.mjs";
|
|
@@ -3,7 +3,7 @@ export * from "./root/types/index.mjs";
|
|
|
3
3
|
export * as dev from "./dev/index.mjs";
|
|
4
4
|
export * as directory from "./directory/index.mjs";
|
|
5
5
|
export * as notifications from "./notifications/index.mjs";
|
|
6
|
-
export * as
|
|
6
|
+
export * as notificationsShipper from "./notificationsShipper/index.mjs";
|
|
7
7
|
export * as oortConnections from "./oortConnections/index.mjs";
|
|
8
8
|
export * as oortCourierPayDriverLineItemGroups from "./oortCourierPayDriverLineItemGroups/index.mjs";
|
|
9
9
|
export * as oortCourierPayDriverPayouts from "./oortCourierPayDriverPayouts/index.mjs";
|
|
@@ -23,7 +23,7 @@ export * as users from "./users/index.mjs";
|
|
|
23
23
|
export * from "./dev/client/requests/index.mjs";
|
|
24
24
|
export * from "./directory/client/requests/index.mjs";
|
|
25
25
|
export * from "./notifications/client/requests/index.mjs";
|
|
26
|
-
export * from "./
|
|
26
|
+
export * from "./notificationsShipper/client/requests/index.mjs";
|
|
27
27
|
export * from "./oortConnections/client/requests/index.mjs";
|
|
28
28
|
export * from "./oortCourierPayDriverLineItemGroups/client/requests/index.mjs";
|
|
29
29
|
export * from "./oortCourierPayDriverPayouts/client/requests/index.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../environments.mjs";
|
|
5
5
|
import * as core from "../../../../core/index.mjs";
|
|
6
6
|
import * as Chrt from "../../../index.mjs";
|
|
7
|
-
export declare namespace
|
|
7
|
+
export declare namespace NotificationsShipper {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
@@ -25,33 +25,33 @@ export declare namespace NotificationsShipperNotificationPreferences {
|
|
|
25
25
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
export declare class
|
|
29
|
-
protected readonly _options:
|
|
30
|
-
constructor(_options?:
|
|
28
|
+
export declare class NotificationsShipper {
|
|
29
|
+
protected readonly _options: NotificationsShipper.Options;
|
|
30
|
+
constructor(_options?: NotificationsShipper.Options);
|
|
31
31
|
/**
|
|
32
32
|
* Get notification preferences by org id from jwt
|
|
33
33
|
*
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {NotificationsShipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.
|
|
37
|
+
* await client.notificationsShipper.getNotificationsPreferencesByOrgId()
|
|
38
38
|
*/
|
|
39
|
-
|
|
40
|
-
private
|
|
39
|
+
getNotificationsPreferencesByOrgId(requestOptions?: NotificationsShipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperNotificationPreferences1>;
|
|
40
|
+
private __getNotificationsPreferencesByOrgId;
|
|
41
41
|
/**
|
|
42
42
|
* Create/Update notification preferences for org in jwt
|
|
43
43
|
*
|
|
44
44
|
* @param {Chrt.ShipperNotificationPreferencesClientCreate1} request
|
|
45
|
-
* @param {
|
|
45
|
+
* @param {NotificationsShipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
|
-
* await client.
|
|
50
|
+
* await client.notificationsShipper.postNotificationsPreferencesByOrgId({
|
|
51
51
|
* schema_version: 1
|
|
52
52
|
* })
|
|
53
53
|
*/
|
|
54
|
-
|
|
55
|
-
private
|
|
54
|
+
postNotificationsPreferencesByOrgId(request: Chrt.ShipperNotificationPreferencesClientCreate1, requestOptions?: NotificationsShipper.RequestOptions): core.HttpResponsePromise<string>;
|
|
55
|
+
private __postNotificationsPreferencesByOrgId;
|
|
56
56
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
57
57
|
}
|
|
@@ -15,22 +15,22 @@ import * as core from "../../../../core/index.mjs";
|
|
|
15
15
|
import * as Chrt from "../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
-
export class
|
|
18
|
+
export class NotificationsShipper {
|
|
19
19
|
constructor(_options = {}) {
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Get notification preferences by org id from jwt
|
|
24
24
|
*
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {NotificationsShipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
-
* await client.
|
|
28
|
+
* await client.notificationsShipper.getNotificationsPreferencesByOrgId()
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
30
|
+
getNotificationsPreferencesByOrgId(requestOptions) {
|
|
31
|
+
return core.HttpResponsePromise.fromPromise(this.__getNotificationsPreferencesByOrgId(requestOptions));
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
__getNotificationsPreferencesByOrgId(requestOptions) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
var _a, _b, _c, _d;
|
|
36
36
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -72,19 +72,19 @@ export class NotificationsShipperNotificationPreferences {
|
|
|
72
72
|
* Create/Update notification preferences for org in jwt
|
|
73
73
|
*
|
|
74
74
|
* @param {Chrt.ShipperNotificationPreferencesClientCreate1} request
|
|
75
|
-
* @param {
|
|
75
|
+
* @param {NotificationsShipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
|
-
* await client.
|
|
80
|
+
* await client.notificationsShipper.postNotificationsPreferencesByOrgId({
|
|
81
81
|
* schema_version: 1
|
|
82
82
|
* })
|
|
83
83
|
*/
|
|
84
|
-
|
|
85
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
84
|
+
postNotificationsPreferencesByOrgId(request, requestOptions) {
|
|
85
|
+
return core.HttpResponsePromise.fromPromise(this.__postNotificationsPreferencesByOrgId(request, requestOptions));
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
__postNotificationsPreferencesByOrgId(request, requestOptions) {
|
|
88
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
89
|
var _a, _b, _c, _d;
|
|
90
90
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.170-
|
|
1
|
+
export declare const SDK_VERSION = "0.0.170-d";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.170-
|
|
1
|
+
export const SDK_VERSION = "0.0.170-d";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -728,9 +728,9 @@ await client.notifications.postCourierNotificationsPreferencesByOrgId({
|
|
|
728
728
|
</dl>
|
|
729
729
|
</details>
|
|
730
730
|
|
|
731
|
-
##
|
|
731
|
+
## NotificationsShipper
|
|
732
732
|
|
|
733
|
-
<details><summary><code>client.
|
|
733
|
+
<details><summary><code>client.notificationsShipper.<a href="/src/api/resources/notificationsShipper/client/Client.ts">getNotificationsPreferencesByOrgId</a>() -> Chrt.ShipperNotificationPreferences1</code></summary>
|
|
734
734
|
<dl>
|
|
735
735
|
<dd>
|
|
736
736
|
|
|
@@ -758,7 +758,7 @@ Get notification preferences by org id from jwt
|
|
|
758
758
|
<dd>
|
|
759
759
|
|
|
760
760
|
```typescript
|
|
761
|
-
await client.
|
|
761
|
+
await client.notificationsShipper.getNotificationsPreferencesByOrgId();
|
|
762
762
|
```
|
|
763
763
|
|
|
764
764
|
</dd>
|
|
@@ -774,7 +774,7 @@ await client.notificationsShipperNotificationPreferences.getShipperNotificationP
|
|
|
774
774
|
<dl>
|
|
775
775
|
<dd>
|
|
776
776
|
|
|
777
|
-
**requestOptions:** `
|
|
777
|
+
**requestOptions:** `NotificationsShipper.RequestOptions`
|
|
778
778
|
|
|
779
779
|
</dd>
|
|
780
780
|
</dl>
|
|
@@ -785,7 +785,7 @@ await client.notificationsShipperNotificationPreferences.getShipperNotificationP
|
|
|
785
785
|
</dl>
|
|
786
786
|
</details>
|
|
787
787
|
|
|
788
|
-
<details><summary><code>client.
|
|
788
|
+
<details><summary><code>client.notificationsShipper.<a href="/src/api/resources/notificationsShipper/client/Client.ts">postNotificationsPreferencesByOrgId</a>({ ...params }) -> string</code></summary>
|
|
789
789
|
<dl>
|
|
790
790
|
<dd>
|
|
791
791
|
|
|
@@ -813,7 +813,7 @@ Create/Update notification preferences for org in jwt
|
|
|
813
813
|
<dd>
|
|
814
814
|
|
|
815
815
|
```typescript
|
|
816
|
-
await client.
|
|
816
|
+
await client.notificationsShipper.postNotificationsPreferencesByOrgId({
|
|
817
817
|
schema_version: 1,
|
|
818
818
|
});
|
|
819
819
|
```
|
|
@@ -839,7 +839,7 @@ await client.notificationsShipperNotificationPreferences.postShipperNotification
|
|
|
839
839
|
<dl>
|
|
840
840
|
<dd>
|
|
841
841
|
|
|
842
|
-
**requestOptions:** `
|
|
842
|
+
**requestOptions:** `NotificationsShipper.RequestOptions`
|
|
843
843
|
|
|
844
844
|
</dd>
|
|
845
845
|
</dl>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|