@chrt-inc/typescript-sdk 0.0.170-d → 0.0.170-e
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 +0 -3
- package/dist/cjs/Client.js +34 -39
- package/dist/cjs/api/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/index.js +1 -3
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/notifications/client/Client.js +5 -0
- package/dist/cjs/api/resources/notifications/index.d.ts +1 -0
- package/dist/cjs/api/resources/notifications/index.js +1 -0
- package/dist/cjs/api/resources/notifications/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/notifications/resources/index.js +41 -0
- package/dist/cjs/api/resources/{notificationsShipper → notifications/resources/shipper}/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/{notificationsShipper → notifications/resources/shipper}/client/Client.js +13 -13
- package/dist/cjs/api/resources/{notificationsShipper → notifications/resources/shipper}/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +0 -3
- package/dist/esm/Client.mjs +2 -7
- package/dist/esm/api/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/index.mjs +0 -2
- package/dist/esm/api/resources/notifications/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/notifications/client/Client.mjs +5 -0
- package/dist/esm/api/resources/notifications/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/notifications/resources/index.mjs +2 -0
- package/dist/esm/api/resources/{notificationsShipper → notifications/resources/shipper}/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/{notificationsShipper → notifications/resources/shipper}/client/Client.mjs +11 -11
- package/dist/esm/api/resources/{notificationsShipper → notifications/resources/shipper}/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +122 -122
- /package/dist/cjs/api/resources/{notificationsShipper → notifications/resources/shipper}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsShipper → notifications/resources/shipper}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsShipper → notifications/resources/shipper}/client/requests/ShipperNotificationPreferencesClientCreate1.js +0 -0
- /package/dist/cjs/api/resources/{notificationsShipper → notifications/resources/shipper}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsShipper → notifications/resources/shipper}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsShipper → notifications/resources/shipper}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsShipper → notifications/resources/shipper}/index.js +0 -0
- /package/dist/esm/api/resources/{notificationsShipper → notifications/resources/shipper}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsShipper → notifications/resources/shipper}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsShipper → notifications/resources/shipper}/client/requests/ShipperNotificationPreferencesClientCreate1.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsShipper → notifications/resources/shipper}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsShipper → notifications/resources/shipper}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsShipper → notifications/resources/shipper}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsShipper → notifications/resources/shipper}/index.mjs +0 -0
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ 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 { NotificationsShipper } from "./api/resources/notificationsShipper/client/Client.js";
|
|
11
10
|
import { OortConnections } from "./api/resources/oortConnections/client/Client.js";
|
|
12
11
|
import { OortCourierPayDriverLineItemGroups } from "./api/resources/oortCourierPayDriverLineItemGroups/client/Client.js";
|
|
13
12
|
import { OortCourierPayDriverPayouts } from "./api/resources/oortCourierPayDriverPayouts/client/Client.js";
|
|
@@ -51,7 +50,6 @@ export declare class ChrtClient {
|
|
|
51
50
|
protected _dev: Dev | undefined;
|
|
52
51
|
protected _directory: Directory | undefined;
|
|
53
52
|
protected _notifications: Notifications | undefined;
|
|
54
|
-
protected _notificationsShipper: NotificationsShipper | undefined;
|
|
55
53
|
protected _oortConnections: OortConnections | undefined;
|
|
56
54
|
protected _oortCourierPayDriverLineItemGroups: OortCourierPayDriverLineItemGroups | undefined;
|
|
57
55
|
protected _oortCourierPayDriverPayouts: OortCourierPayDriverPayouts | undefined;
|
|
@@ -73,7 +71,6 @@ export declare class ChrtClient {
|
|
|
73
71
|
get dev(): Dev;
|
|
74
72
|
get directory(): Directory;
|
|
75
73
|
get notifications(): Notifications;
|
|
76
|
-
get notificationsShipper(): NotificationsShipper;
|
|
77
74
|
get oortConnections(): OortConnections;
|
|
78
75
|
get oortCourierPayDriverLineItemGroups(): OortCourierPayDriverLineItemGroups;
|
|
79
76
|
get oortCourierPayDriverPayouts(): OortCourierPayDriverPayouts;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -43,30 +43,29 @@ 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/
|
|
47
|
-
const Client_js_6 = require("./api/resources/
|
|
48
|
-
const Client_js_7 = require("./api/resources/
|
|
49
|
-
const Client_js_8 = require("./api/resources/
|
|
50
|
-
const Client_js_9 = require("./api/resources/
|
|
51
|
-
const Client_js_10 = require("./api/resources/
|
|
52
|
-
const Client_js_11 = require("./api/resources/
|
|
53
|
-
const Client_js_12 = require("./api/resources/
|
|
54
|
-
const Client_js_13 = require("./api/resources/
|
|
55
|
-
const Client_js_14 = require("./api/resources/
|
|
56
|
-
const Client_js_15 = require("./api/resources/
|
|
57
|
-
const Client_js_16 = require("./api/resources/
|
|
58
|
-
const Client_js_17 = require("./api/resources/
|
|
59
|
-
const Client_js_18 = require("./api/resources/
|
|
60
|
-
const Client_js_19 = require("./api/resources/
|
|
61
|
-
const Client_js_20 = require("./api/resources/
|
|
62
|
-
const Client_js_21 = require("./api/resources/users/client/Client.js");
|
|
46
|
+
const Client_js_5 = require("./api/resources/oortConnections/client/Client.js");
|
|
47
|
+
const Client_js_6 = require("./api/resources/oortCourierPayDriverLineItemGroups/client/Client.js");
|
|
48
|
+
const Client_js_7 = require("./api/resources/oortCourierPayDriverPayouts/client/Client.js");
|
|
49
|
+
const Client_js_8 = require("./api/resources/oortCourierPayDriverRateSheets/client/Client.js");
|
|
50
|
+
const Client_js_9 = require("./api/resources/oortDrivers/client/Client.js");
|
|
51
|
+
const Client_js_10 = require("./api/resources/oortMilestoneNotificationPreferences/client/Client.js");
|
|
52
|
+
const Client_js_11 = require("./api/resources/oortMilestones/client/Client.js");
|
|
53
|
+
const Client_js_12 = require("./api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.js");
|
|
54
|
+
const Client_js_13 = require("./api/resources/oortOrders/client/Client.js");
|
|
55
|
+
const Client_js_14 = require("./api/resources/oortOrgConnectionInfos/client/Client.js");
|
|
56
|
+
const Client_js_15 = require("./api/resources/oortOrgProfiles/client/Client.js");
|
|
57
|
+
const Client_js_16 = require("./api/resources/oortShipperContactInfo/client/Client.js");
|
|
58
|
+
const Client_js_17 = require("./api/resources/oortTaskGroups/client/Client.js");
|
|
59
|
+
const Client_js_18 = require("./api/resources/orgs/client/Client.js");
|
|
60
|
+
const Client_js_19 = require("./api/resources/payments/client/Client.js");
|
|
61
|
+
const Client_js_20 = require("./api/resources/users/client/Client.js");
|
|
63
62
|
class ChrtClient {
|
|
64
63
|
constructor(_options = {}) {
|
|
65
64
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
66
65
|
"X-Fern-Language": "JavaScript",
|
|
67
66
|
"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-
|
|
67
|
+
"X-Fern-SDK-Version": "0.0.170-e",
|
|
68
|
+
"User-Agent": "@chrt-inc/typescript-sdk/0.0.170-e",
|
|
70
69
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
70
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
71
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -87,73 +86,69 @@ class ChrtClient {
|
|
|
87
86
|
var _a;
|
|
88
87
|
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_4.Notifications(this._options)));
|
|
89
88
|
}
|
|
90
|
-
get notificationsShipper() {
|
|
91
|
-
var _a;
|
|
92
|
-
return ((_a = this._notificationsShipper) !== null && _a !== void 0 ? _a : (this._notificationsShipper = new Client_js_5.NotificationsShipper(this._options)));
|
|
93
|
-
}
|
|
94
89
|
get oortConnections() {
|
|
95
90
|
var _a;
|
|
96
|
-
return ((_a = this._oortConnections) !== null && _a !== void 0 ? _a : (this._oortConnections = new
|
|
91
|
+
return ((_a = this._oortConnections) !== null && _a !== void 0 ? _a : (this._oortConnections = new Client_js_5.OortConnections(this._options)));
|
|
97
92
|
}
|
|
98
93
|
get oortCourierPayDriverLineItemGroups() {
|
|
99
94
|
var _a;
|
|
100
|
-
return ((_a = this._oortCourierPayDriverLineItemGroups) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverLineItemGroups = new
|
|
95
|
+
return ((_a = this._oortCourierPayDriverLineItemGroups) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverLineItemGroups = new Client_js_6.OortCourierPayDriverLineItemGroups(this._options)));
|
|
101
96
|
}
|
|
102
97
|
get oortCourierPayDriverPayouts() {
|
|
103
98
|
var _a;
|
|
104
|
-
return ((_a = this._oortCourierPayDriverPayouts) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverPayouts = new
|
|
99
|
+
return ((_a = this._oortCourierPayDriverPayouts) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverPayouts = new Client_js_7.OortCourierPayDriverPayouts(this._options)));
|
|
105
100
|
}
|
|
106
101
|
get oortCourierPayDriverRateSheets() {
|
|
107
102
|
var _a;
|
|
108
|
-
return ((_a = this._oortCourierPayDriverRateSheets) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverRateSheets = new
|
|
103
|
+
return ((_a = this._oortCourierPayDriverRateSheets) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverRateSheets = new Client_js_8.OortCourierPayDriverRateSheets(this._options)));
|
|
109
104
|
}
|
|
110
105
|
get oortDrivers() {
|
|
111
106
|
var _a;
|
|
112
|
-
return ((_a = this._oortDrivers) !== null && _a !== void 0 ? _a : (this._oortDrivers = new
|
|
107
|
+
return ((_a = this._oortDrivers) !== null && _a !== void 0 ? _a : (this._oortDrivers = new Client_js_9.OortDrivers(this._options)));
|
|
113
108
|
}
|
|
114
109
|
get oortMilestoneNotificationPreferences() {
|
|
115
110
|
var _a;
|
|
116
|
-
return ((_a = this._oortMilestoneNotificationPreferences) !== null && _a !== void 0 ? _a : (this._oortMilestoneNotificationPreferences = new
|
|
111
|
+
return ((_a = this._oortMilestoneNotificationPreferences) !== null && _a !== void 0 ? _a : (this._oortMilestoneNotificationPreferences = new Client_js_10.OortMilestoneNotificationPreferences(this._options)));
|
|
117
112
|
}
|
|
118
113
|
get oortMilestones() {
|
|
119
114
|
var _a;
|
|
120
|
-
return ((_a = this._oortMilestones) !== null && _a !== void 0 ? _a : (this._oortMilestones = new
|
|
115
|
+
return ((_a = this._oortMilestones) !== null && _a !== void 0 ? _a : (this._oortMilestones = new Client_js_11.OortMilestones(this._options)));
|
|
121
116
|
}
|
|
122
117
|
get oortOffChrtShipperOrgConnectionInfo() {
|
|
123
118
|
var _a;
|
|
124
|
-
return ((_a = this._oortOffChrtShipperOrgConnectionInfo) !== null && _a !== void 0 ? _a : (this._oortOffChrtShipperOrgConnectionInfo = new
|
|
119
|
+
return ((_a = this._oortOffChrtShipperOrgConnectionInfo) !== null && _a !== void 0 ? _a : (this._oortOffChrtShipperOrgConnectionInfo = new Client_js_12.OortOffChrtShipperOrgConnectionInfo(this._options)));
|
|
125
120
|
}
|
|
126
121
|
get oortOrders() {
|
|
127
122
|
var _a;
|
|
128
|
-
return ((_a = this._oortOrders) !== null && _a !== void 0 ? _a : (this._oortOrders = new
|
|
123
|
+
return ((_a = this._oortOrders) !== null && _a !== void 0 ? _a : (this._oortOrders = new Client_js_13.OortOrders(this._options)));
|
|
129
124
|
}
|
|
130
125
|
get oortOrgConnectionInfos() {
|
|
131
126
|
var _a;
|
|
132
|
-
return ((_a = this._oortOrgConnectionInfos) !== null && _a !== void 0 ? _a : (this._oortOrgConnectionInfos = new
|
|
127
|
+
return ((_a = this._oortOrgConnectionInfos) !== null && _a !== void 0 ? _a : (this._oortOrgConnectionInfos = new Client_js_14.OortOrgConnectionInfos(this._options)));
|
|
133
128
|
}
|
|
134
129
|
get oortOrgProfiles() {
|
|
135
130
|
var _a;
|
|
136
|
-
return ((_a = this._oortOrgProfiles) !== null && _a !== void 0 ? _a : (this._oortOrgProfiles = new
|
|
131
|
+
return ((_a = this._oortOrgProfiles) !== null && _a !== void 0 ? _a : (this._oortOrgProfiles = new Client_js_15.OortOrgProfiles(this._options)));
|
|
137
132
|
}
|
|
138
133
|
get oortShipperContactInfo() {
|
|
139
134
|
var _a;
|
|
140
|
-
return ((_a = this._oortShipperContactInfo) !== null && _a !== void 0 ? _a : (this._oortShipperContactInfo = new
|
|
135
|
+
return ((_a = this._oortShipperContactInfo) !== null && _a !== void 0 ? _a : (this._oortShipperContactInfo = new Client_js_16.OortShipperContactInfo(this._options)));
|
|
141
136
|
}
|
|
142
137
|
get oortTaskGroups() {
|
|
143
138
|
var _a;
|
|
144
|
-
return ((_a = this._oortTaskGroups) !== null && _a !== void 0 ? _a : (this._oortTaskGroups = new
|
|
139
|
+
return ((_a = this._oortTaskGroups) !== null && _a !== void 0 ? _a : (this._oortTaskGroups = new Client_js_17.OortTaskGroups(this._options)));
|
|
145
140
|
}
|
|
146
141
|
get orgs() {
|
|
147
142
|
var _a;
|
|
148
|
-
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new
|
|
143
|
+
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_js_18.Orgs(this._options)));
|
|
149
144
|
}
|
|
150
145
|
get payments() {
|
|
151
146
|
var _a;
|
|
152
|
-
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new
|
|
147
|
+
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new Client_js_19.Payments(this._options)));
|
|
153
148
|
}
|
|
154
149
|
get users() {
|
|
155
150
|
var _a;
|
|
156
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
151
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_20.Users(this._options)));
|
|
157
152
|
}
|
|
158
153
|
}
|
|
159
154
|
exports.ChrtClient = ChrtClient;
|
|
@@ -3,7 +3,6 @@ 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 notificationsShipper from "./notificationsShipper/index.js";
|
|
7
6
|
export * as oortConnections from "./oortConnections/index.js";
|
|
8
7
|
export * as oortCourierPayDriverLineItemGroups from "./oortCourierPayDriverLineItemGroups/index.js";
|
|
9
8
|
export * as oortCourierPayDriverPayouts from "./oortCourierPayDriverPayouts/index.js";
|
|
@@ -23,7 +22,6 @@ export * as users from "./users/index.js";
|
|
|
23
22
|
export * from "./dev/client/requests/index.js";
|
|
24
23
|
export * from "./directory/client/requests/index.js";
|
|
25
24
|
export * from "./notifications/client/requests/index.js";
|
|
26
|
-
export * from "./notificationsShipper/client/requests/index.js";
|
|
27
25
|
export * from "./oortConnections/client/requests/index.js";
|
|
28
26
|
export * from "./oortCourierPayDriverLineItemGroups/client/requests/index.js";
|
|
29
27
|
export * from "./oortCourierPayDriverPayouts/client/requests/index.js";
|
|
@@ -36,13 +36,12 @@ 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.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.notificationsShipper = __importStar(require("./notificationsShipper/index.js"));
|
|
46
45
|
exports.oortConnections = __importStar(require("./oortConnections/index.js"));
|
|
47
46
|
exports.oortCourierPayDriverLineItemGroups = __importStar(require("./oortCourierPayDriverLineItemGroups/index.js"));
|
|
48
47
|
exports.oortCourierPayDriverPayouts = __importStar(require("./oortCourierPayDriverPayouts/index.js"));
|
|
@@ -62,7 +61,6 @@ exports.users = __importStar(require("./users/index.js"));
|
|
|
62
61
|
__exportStar(require("./dev/client/requests/index.js"), exports);
|
|
63
62
|
__exportStar(require("./directory/client/requests/index.js"), exports);
|
|
64
63
|
__exportStar(require("./notifications/client/requests/index.js"), exports);
|
|
65
|
-
__exportStar(require("./notificationsShipper/client/requests/index.js"), exports);
|
|
66
64
|
__exportStar(require("./oortConnections/client/requests/index.js"), exports);
|
|
67
65
|
__exportStar(require("./oortCourierPayDriverLineItemGroups/client/requests/index.js"), exports);
|
|
68
66
|
__exportStar(require("./oortCourierPayDriverPayouts/client/requests/index.js"), exports);
|
|
@@ -4,6 +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
|
+
import { Shipper } from "../resources/shipper/client/Client.js";
|
|
7
8
|
export declare namespace Notifications {
|
|
8
9
|
interface Options {
|
|
9
10
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -27,7 +28,9 @@ export declare namespace Notifications {
|
|
|
27
28
|
}
|
|
28
29
|
export declare class Notifications {
|
|
29
30
|
protected readonly _options: Notifications.Options;
|
|
31
|
+
protected _shipper: Shipper | undefined;
|
|
30
32
|
constructor(_options?: Notifications.Options);
|
|
33
|
+
get shipper(): Shipper;
|
|
31
34
|
/**
|
|
32
35
|
* Get notification preferences by org id from jwt
|
|
33
36
|
*
|
|
@@ -51,10 +51,15 @@ 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
|
+
const Client_js_1 = require("../resources/shipper/client/Client.js");
|
|
54
55
|
class Notifications {
|
|
55
56
|
constructor(_options = {}) {
|
|
56
57
|
this._options = _options;
|
|
57
58
|
}
|
|
59
|
+
get shipper() {
|
|
60
|
+
var _a;
|
|
61
|
+
return ((_a = this._shipper) !== null && _a !== void 0 ? _a : (this._shipper = new Client_js_1.Shipper(this._options)));
|
|
62
|
+
}
|
|
58
63
|
/**
|
|
59
64
|
* Get notification preferences by org id from jwt
|
|
60
65
|
*
|
|
@@ -0,0 +1,41 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.shipper = void 0;
|
|
40
|
+
exports.shipper = __importStar(require("./shipper/index.js"));
|
|
41
|
+
__exportStar(require("./shipper/client/requests/index.js"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as environments from "
|
|
5
|
-
import * as core from "
|
|
6
|
-
import * as Chrt from "
|
|
7
|
-
export declare namespace
|
|
4
|
+
import * as environments from "../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../index.js";
|
|
7
|
+
export declare namespace Shipper {
|
|
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 NotificationsShipper {
|
|
|
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 Shipper {
|
|
29
|
+
protected readonly _options: Shipper.Options;
|
|
30
|
+
constructor(_options?: Shipper.Options);
|
|
31
31
|
/**
|
|
32
32
|
* Get notification preferences by org id from jwt
|
|
33
33
|
*
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.
|
|
37
|
+
* await client.notifications.shipper.getNotificationsPreferencesByOrgId()
|
|
38
38
|
*/
|
|
39
|
-
getNotificationsPreferencesByOrgId(requestOptions?:
|
|
39
|
+
getNotificationsPreferencesByOrgId(requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperNotificationPreferences1>;
|
|
40
40
|
private __getNotificationsPreferencesByOrgId;
|
|
41
41
|
/**
|
|
42
42
|
* Create/Update notification preferences for org in jwt
|
|
43
43
|
*
|
|
44
|
-
* @param {Chrt.ShipperNotificationPreferencesClientCreate1} request
|
|
45
|
-
* @param {
|
|
44
|
+
* @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
|
|
45
|
+
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
|
-
* await client.
|
|
50
|
+
* await client.notifications.shipper.postNotificationsPreferencesByOrgId({
|
|
51
51
|
* schema_version: 1
|
|
52
52
|
* })
|
|
53
53
|
*/
|
|
54
|
-
postNotificationsPreferencesByOrgId(request: Chrt.ShipperNotificationPreferencesClientCreate1, requestOptions?:
|
|
54
|
+
postNotificationsPreferencesByOrgId(request: Chrt.notifications.ShipperNotificationPreferencesClientCreate1, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<string>;
|
|
55
55
|
private __postNotificationsPreferencesByOrgId;
|
|
56
56
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
57
57
|
}
|
|
@@ -45,23 +45,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.
|
|
49
|
-
const environments = __importStar(require("
|
|
50
|
-
const core = __importStar(require("
|
|
51
|
-
const Chrt = __importStar(require("
|
|
52
|
-
const headers_js_1 = require("
|
|
53
|
-
const errors = __importStar(require("
|
|
54
|
-
class
|
|
48
|
+
exports.Shipper = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
51
|
+
const Chrt = __importStar(require("../../../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
54
|
+
class Shipper {
|
|
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 {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.
|
|
64
|
+
* await client.notifications.shipper.getNotificationsPreferencesByOrgId()
|
|
65
65
|
*/
|
|
66
66
|
getNotificationsPreferencesByOrgId(requestOptions) {
|
|
67
67
|
return core.HttpResponsePromise.fromPromise(this.__getNotificationsPreferencesByOrgId(requestOptions));
|
|
@@ -107,13 +107,13 @@ class NotificationsShipper {
|
|
|
107
107
|
/**
|
|
108
108
|
* Create/Update notification preferences for org in jwt
|
|
109
109
|
*
|
|
110
|
-
* @param {Chrt.ShipperNotificationPreferencesClientCreate1} request
|
|
111
|
-
* @param {
|
|
110
|
+
* @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
|
|
111
|
+
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
112
|
*
|
|
113
113
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
114
114
|
*
|
|
115
115
|
* @example
|
|
116
|
-
* await client.
|
|
116
|
+
* await client.notifications.shipper.postNotificationsPreferencesByOrgId({
|
|
117
117
|
* schema_version: 1
|
|
118
118
|
* })
|
|
119
119
|
*/
|
|
@@ -176,4 +176,4 @@ class NotificationsShipper {
|
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
exports.
|
|
179
|
+
exports.Shipper = Shipper;
|
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-e";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -7,7 +7,6 @@ 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 { NotificationsShipper } from "./api/resources/notificationsShipper/client/Client.mjs";
|
|
11
10
|
import { OortConnections } from "./api/resources/oortConnections/client/Client.mjs";
|
|
12
11
|
import { OortCourierPayDriverLineItemGroups } from "./api/resources/oortCourierPayDriverLineItemGroups/client/Client.mjs";
|
|
13
12
|
import { OortCourierPayDriverPayouts } from "./api/resources/oortCourierPayDriverPayouts/client/Client.mjs";
|
|
@@ -51,7 +50,6 @@ export declare class ChrtClient {
|
|
|
51
50
|
protected _dev: Dev | undefined;
|
|
52
51
|
protected _directory: Directory | undefined;
|
|
53
52
|
protected _notifications: Notifications | undefined;
|
|
54
|
-
protected _notificationsShipper: NotificationsShipper | undefined;
|
|
55
53
|
protected _oortConnections: OortConnections | undefined;
|
|
56
54
|
protected _oortCourierPayDriverLineItemGroups: OortCourierPayDriverLineItemGroups | undefined;
|
|
57
55
|
protected _oortCourierPayDriverPayouts: OortCourierPayDriverPayouts | undefined;
|
|
@@ -73,7 +71,6 @@ export declare class ChrtClient {
|
|
|
73
71
|
get dev(): Dev;
|
|
74
72
|
get directory(): Directory;
|
|
75
73
|
get notifications(): Notifications;
|
|
76
|
-
get notificationsShipper(): NotificationsShipper;
|
|
77
74
|
get oortConnections(): OortConnections;
|
|
78
75
|
get oortCourierPayDriverLineItemGroups(): OortCourierPayDriverLineItemGroups;
|
|
79
76
|
get oortCourierPayDriverPayouts(): OortCourierPayDriverPayouts;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -7,7 +7,6 @@ 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 { NotificationsShipper } from "./api/resources/notificationsShipper/client/Client.mjs";
|
|
11
10
|
import { OortConnections } from "./api/resources/oortConnections/client/Client.mjs";
|
|
12
11
|
import { OortCourierPayDriverLineItemGroups } from "./api/resources/oortCourierPayDriverLineItemGroups/client/Client.mjs";
|
|
13
12
|
import { OortCourierPayDriverPayouts } from "./api/resources/oortCourierPayDriverPayouts/client/Client.mjs";
|
|
@@ -29,8 +28,8 @@ export class ChrtClient {
|
|
|
29
28
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
30
29
|
"X-Fern-Language": "JavaScript",
|
|
31
30
|
"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-
|
|
31
|
+
"X-Fern-SDK-Version": "0.0.170-e",
|
|
32
|
+
"User-Agent": "@chrt-inc/typescript-sdk/0.0.170-e",
|
|
34
33
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
35
34
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
36
35
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -51,10 +50,6 @@ export class ChrtClient {
|
|
|
51
50
|
var _a;
|
|
52
51
|
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Notifications(this._options)));
|
|
53
52
|
}
|
|
54
|
-
get notificationsShipper() {
|
|
55
|
-
var _a;
|
|
56
|
-
return ((_a = this._notificationsShipper) !== null && _a !== void 0 ? _a : (this._notificationsShipper = new NotificationsShipper(this._options)));
|
|
57
|
-
}
|
|
58
53
|
get oortConnections() {
|
|
59
54
|
var _a;
|
|
60
55
|
return ((_a = this._oortConnections) !== null && _a !== void 0 ? _a : (this._oortConnections = new OortConnections(this._options)));
|
|
@@ -3,7 +3,6 @@ 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 notificationsShipper from "./notificationsShipper/index.mjs";
|
|
7
6
|
export * as oortConnections from "./oortConnections/index.mjs";
|
|
8
7
|
export * as oortCourierPayDriverLineItemGroups from "./oortCourierPayDriverLineItemGroups/index.mjs";
|
|
9
8
|
export * as oortCourierPayDriverPayouts from "./oortCourierPayDriverPayouts/index.mjs";
|
|
@@ -23,7 +22,6 @@ export * as users from "./users/index.mjs";
|
|
|
23
22
|
export * from "./dev/client/requests/index.mjs";
|
|
24
23
|
export * from "./directory/client/requests/index.mjs";
|
|
25
24
|
export * from "./notifications/client/requests/index.mjs";
|
|
26
|
-
export * from "./notificationsShipper/client/requests/index.mjs";
|
|
27
25
|
export * from "./oortConnections/client/requests/index.mjs";
|
|
28
26
|
export * from "./oortCourierPayDriverLineItemGroups/client/requests/index.mjs";
|
|
29
27
|
export * from "./oortCourierPayDriverPayouts/client/requests/index.mjs";
|
|
@@ -3,7 +3,6 @@ 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 notificationsShipper from "./notificationsShipper/index.mjs";
|
|
7
6
|
export * as oortConnections from "./oortConnections/index.mjs";
|
|
8
7
|
export * as oortCourierPayDriverLineItemGroups from "./oortCourierPayDriverLineItemGroups/index.mjs";
|
|
9
8
|
export * as oortCourierPayDriverPayouts from "./oortCourierPayDriverPayouts/index.mjs";
|
|
@@ -23,7 +22,6 @@ export * as users from "./users/index.mjs";
|
|
|
23
22
|
export * from "./dev/client/requests/index.mjs";
|
|
24
23
|
export * from "./directory/client/requests/index.mjs";
|
|
25
24
|
export * from "./notifications/client/requests/index.mjs";
|
|
26
|
-
export * from "./notificationsShipper/client/requests/index.mjs";
|
|
27
25
|
export * from "./oortConnections/client/requests/index.mjs";
|
|
28
26
|
export * from "./oortCourierPayDriverLineItemGroups/client/requests/index.mjs";
|
|
29
27
|
export * from "./oortCourierPayDriverPayouts/client/requests/index.mjs";
|
|
@@ -4,6 +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
|
+
import { Shipper } from "../resources/shipper/client/Client.mjs";
|
|
7
8
|
export declare namespace Notifications {
|
|
8
9
|
interface Options {
|
|
9
10
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -27,7 +28,9 @@ export declare namespace Notifications {
|
|
|
27
28
|
}
|
|
28
29
|
export declare class Notifications {
|
|
29
30
|
protected readonly _options: Notifications.Options;
|
|
31
|
+
protected _shipper: Shipper | undefined;
|
|
30
32
|
constructor(_options?: Notifications.Options);
|
|
33
|
+
get shipper(): Shipper;
|
|
31
34
|
/**
|
|
32
35
|
* Get notification preferences by org id from jwt
|
|
33
36
|
*
|
|
@@ -15,10 +15,15 @@ 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
|
+
import { Shipper } from "../resources/shipper/client/Client.mjs";
|
|
18
19
|
export class Notifications {
|
|
19
20
|
constructor(_options = {}) {
|
|
20
21
|
this._options = _options;
|
|
21
22
|
}
|
|
23
|
+
get shipper() {
|
|
24
|
+
var _a;
|
|
25
|
+
return ((_a = this._shipper) !== null && _a !== void 0 ? _a : (this._shipper = new Shipper(this._options)));
|
|
26
|
+
}
|
|
22
27
|
/**
|
|
23
28
|
* Get notification preferences by org id from jwt
|
|
24
29
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as environments from "
|
|
5
|
-
import * as core from "
|
|
6
|
-
import * as Chrt from "
|
|
7
|
-
export declare namespace
|
|
4
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../../../index.mjs";
|
|
7
|
+
export declare namespace Shipper {
|
|
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 NotificationsShipper {
|
|
|
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 Shipper {
|
|
29
|
+
protected readonly _options: Shipper.Options;
|
|
30
|
+
constructor(_options?: Shipper.Options);
|
|
31
31
|
/**
|
|
32
32
|
* Get notification preferences by org id from jwt
|
|
33
33
|
*
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.
|
|
37
|
+
* await client.notifications.shipper.getNotificationsPreferencesByOrgId()
|
|
38
38
|
*/
|
|
39
|
-
getNotificationsPreferencesByOrgId(requestOptions?:
|
|
39
|
+
getNotificationsPreferencesByOrgId(requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperNotificationPreferences1>;
|
|
40
40
|
private __getNotificationsPreferencesByOrgId;
|
|
41
41
|
/**
|
|
42
42
|
* Create/Update notification preferences for org in jwt
|
|
43
43
|
*
|
|
44
|
-
* @param {Chrt.ShipperNotificationPreferencesClientCreate1} request
|
|
45
|
-
* @param {
|
|
44
|
+
* @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
|
|
45
|
+
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
|
-
* await client.
|
|
50
|
+
* await client.notifications.shipper.postNotificationsPreferencesByOrgId({
|
|
51
51
|
* schema_version: 1
|
|
52
52
|
* })
|
|
53
53
|
*/
|
|
54
|
-
postNotificationsPreferencesByOrgId(request: Chrt.ShipperNotificationPreferencesClientCreate1, requestOptions?:
|
|
54
|
+
postNotificationsPreferencesByOrgId(request: Chrt.notifications.ShipperNotificationPreferencesClientCreate1, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<string>;
|
|
55
55
|
private __postNotificationsPreferencesByOrgId;
|
|
56
56
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
57
57
|
}
|
|
@@ -10,22 +10,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
|
-
import * as environments from "
|
|
14
|
-
import * as core from "
|
|
15
|
-
import * as Chrt from "
|
|
16
|
-
import { mergeHeaders, mergeOnlyDefinedHeaders } from "
|
|
17
|
-
import * as errors from "
|
|
18
|
-
export class
|
|
13
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
18
|
+
export class Shipper {
|
|
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 {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
-
* await client.
|
|
28
|
+
* await client.notifications.shipper.getNotificationsPreferencesByOrgId()
|
|
29
29
|
*/
|
|
30
30
|
getNotificationsPreferencesByOrgId(requestOptions) {
|
|
31
31
|
return core.HttpResponsePromise.fromPromise(this.__getNotificationsPreferencesByOrgId(requestOptions));
|
|
@@ -71,13 +71,13 @@ export class NotificationsShipper {
|
|
|
71
71
|
/**
|
|
72
72
|
* Create/Update notification preferences for org in jwt
|
|
73
73
|
*
|
|
74
|
-
* @param {Chrt.ShipperNotificationPreferencesClientCreate1} request
|
|
75
|
-
* @param {
|
|
74
|
+
* @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
|
|
75
|
+
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
|
-
* await client.
|
|
80
|
+
* await client.notifications.shipper.postNotificationsPreferencesByOrgId({
|
|
81
81
|
* schema_version: 1
|
|
82
82
|
* })
|
|
83
83
|
*/
|
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-e";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.170-
|
|
1
|
+
export const SDK_VERSION = "0.0.170-e";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -728,128 +728,6 @@ await client.notifications.postCourierNotificationsPreferencesByOrgId({
|
|
|
728
728
|
</dl>
|
|
729
729
|
</details>
|
|
730
730
|
|
|
731
|
-
## NotificationsShipper
|
|
732
|
-
|
|
733
|
-
<details><summary><code>client.notificationsShipper.<a href="/src/api/resources/notificationsShipper/client/Client.ts">getNotificationsPreferencesByOrgId</a>() -> Chrt.ShipperNotificationPreferences1</code></summary>
|
|
734
|
-
<dl>
|
|
735
|
-
<dd>
|
|
736
|
-
|
|
737
|
-
#### 📝 Description
|
|
738
|
-
|
|
739
|
-
<dl>
|
|
740
|
-
<dd>
|
|
741
|
-
|
|
742
|
-
<dl>
|
|
743
|
-
<dd>
|
|
744
|
-
|
|
745
|
-
Get notification preferences by org id from jwt
|
|
746
|
-
|
|
747
|
-
</dd>
|
|
748
|
-
</dl>
|
|
749
|
-
</dd>
|
|
750
|
-
</dl>
|
|
751
|
-
|
|
752
|
-
#### 🔌 Usage
|
|
753
|
-
|
|
754
|
-
<dl>
|
|
755
|
-
<dd>
|
|
756
|
-
|
|
757
|
-
<dl>
|
|
758
|
-
<dd>
|
|
759
|
-
|
|
760
|
-
```typescript
|
|
761
|
-
await client.notificationsShipper.getNotificationsPreferencesByOrgId();
|
|
762
|
-
```
|
|
763
|
-
|
|
764
|
-
</dd>
|
|
765
|
-
</dl>
|
|
766
|
-
</dd>
|
|
767
|
-
</dl>
|
|
768
|
-
|
|
769
|
-
#### ⚙️ Parameters
|
|
770
|
-
|
|
771
|
-
<dl>
|
|
772
|
-
<dd>
|
|
773
|
-
|
|
774
|
-
<dl>
|
|
775
|
-
<dd>
|
|
776
|
-
|
|
777
|
-
**requestOptions:** `NotificationsShipper.RequestOptions`
|
|
778
|
-
|
|
779
|
-
</dd>
|
|
780
|
-
</dl>
|
|
781
|
-
</dd>
|
|
782
|
-
</dl>
|
|
783
|
-
|
|
784
|
-
</dd>
|
|
785
|
-
</dl>
|
|
786
|
-
</details>
|
|
787
|
-
|
|
788
|
-
<details><summary><code>client.notificationsShipper.<a href="/src/api/resources/notificationsShipper/client/Client.ts">postNotificationsPreferencesByOrgId</a>({ ...params }) -> string</code></summary>
|
|
789
|
-
<dl>
|
|
790
|
-
<dd>
|
|
791
|
-
|
|
792
|
-
#### 📝 Description
|
|
793
|
-
|
|
794
|
-
<dl>
|
|
795
|
-
<dd>
|
|
796
|
-
|
|
797
|
-
<dl>
|
|
798
|
-
<dd>
|
|
799
|
-
|
|
800
|
-
Create/Update notification preferences for org in jwt
|
|
801
|
-
|
|
802
|
-
</dd>
|
|
803
|
-
</dl>
|
|
804
|
-
</dd>
|
|
805
|
-
</dl>
|
|
806
|
-
|
|
807
|
-
#### 🔌 Usage
|
|
808
|
-
|
|
809
|
-
<dl>
|
|
810
|
-
<dd>
|
|
811
|
-
|
|
812
|
-
<dl>
|
|
813
|
-
<dd>
|
|
814
|
-
|
|
815
|
-
```typescript
|
|
816
|
-
await client.notificationsShipper.postNotificationsPreferencesByOrgId({
|
|
817
|
-
schema_version: 1,
|
|
818
|
-
});
|
|
819
|
-
```
|
|
820
|
-
|
|
821
|
-
</dd>
|
|
822
|
-
</dl>
|
|
823
|
-
</dd>
|
|
824
|
-
</dl>
|
|
825
|
-
|
|
826
|
-
#### ⚙️ Parameters
|
|
827
|
-
|
|
828
|
-
<dl>
|
|
829
|
-
<dd>
|
|
830
|
-
|
|
831
|
-
<dl>
|
|
832
|
-
<dd>
|
|
833
|
-
|
|
834
|
-
**request:** `Chrt.ShipperNotificationPreferencesClientCreate1`
|
|
835
|
-
|
|
836
|
-
</dd>
|
|
837
|
-
</dl>
|
|
838
|
-
|
|
839
|
-
<dl>
|
|
840
|
-
<dd>
|
|
841
|
-
|
|
842
|
-
**requestOptions:** `NotificationsShipper.RequestOptions`
|
|
843
|
-
|
|
844
|
-
</dd>
|
|
845
|
-
</dl>
|
|
846
|
-
</dd>
|
|
847
|
-
</dl>
|
|
848
|
-
|
|
849
|
-
</dd>
|
|
850
|
-
</dl>
|
|
851
|
-
</details>
|
|
852
|
-
|
|
853
731
|
## OortConnections
|
|
854
732
|
|
|
855
733
|
<details><summary><code>client.oortConnections.<a href="/src/api/resources/oortConnections/client/Client.ts">getConnectionsInfoForCouriers</a>() -> Chrt.ShipperOrgConnectionInfo1[]</code></summary>
|
|
@@ -5859,3 +5737,125 @@ await client.users.getUserPublicData();
|
|
|
5859
5737
|
</dd>
|
|
5860
5738
|
</dl>
|
|
5861
5739
|
</details>
|
|
5740
|
+
|
|
5741
|
+
## Notifications Shipper
|
|
5742
|
+
|
|
5743
|
+
<details><summary><code>client.notifications.shipper.<a href="/src/api/resources/notifications/resources/shipper/client/Client.ts">getNotificationsPreferencesByOrgId</a>() -> Chrt.ShipperNotificationPreferences1</code></summary>
|
|
5744
|
+
<dl>
|
|
5745
|
+
<dd>
|
|
5746
|
+
|
|
5747
|
+
#### 📝 Description
|
|
5748
|
+
|
|
5749
|
+
<dl>
|
|
5750
|
+
<dd>
|
|
5751
|
+
|
|
5752
|
+
<dl>
|
|
5753
|
+
<dd>
|
|
5754
|
+
|
|
5755
|
+
Get notification preferences by org id from jwt
|
|
5756
|
+
|
|
5757
|
+
</dd>
|
|
5758
|
+
</dl>
|
|
5759
|
+
</dd>
|
|
5760
|
+
</dl>
|
|
5761
|
+
|
|
5762
|
+
#### 🔌 Usage
|
|
5763
|
+
|
|
5764
|
+
<dl>
|
|
5765
|
+
<dd>
|
|
5766
|
+
|
|
5767
|
+
<dl>
|
|
5768
|
+
<dd>
|
|
5769
|
+
|
|
5770
|
+
```typescript
|
|
5771
|
+
await client.notifications.shipper.getNotificationsPreferencesByOrgId();
|
|
5772
|
+
```
|
|
5773
|
+
|
|
5774
|
+
</dd>
|
|
5775
|
+
</dl>
|
|
5776
|
+
</dd>
|
|
5777
|
+
</dl>
|
|
5778
|
+
|
|
5779
|
+
#### ⚙️ Parameters
|
|
5780
|
+
|
|
5781
|
+
<dl>
|
|
5782
|
+
<dd>
|
|
5783
|
+
|
|
5784
|
+
<dl>
|
|
5785
|
+
<dd>
|
|
5786
|
+
|
|
5787
|
+
**requestOptions:** `Shipper.RequestOptions`
|
|
5788
|
+
|
|
5789
|
+
</dd>
|
|
5790
|
+
</dl>
|
|
5791
|
+
</dd>
|
|
5792
|
+
</dl>
|
|
5793
|
+
|
|
5794
|
+
</dd>
|
|
5795
|
+
</dl>
|
|
5796
|
+
</details>
|
|
5797
|
+
|
|
5798
|
+
<details><summary><code>client.notifications.shipper.<a href="/src/api/resources/notifications/resources/shipper/client/Client.ts">postNotificationsPreferencesByOrgId</a>({ ...params }) -> string</code></summary>
|
|
5799
|
+
<dl>
|
|
5800
|
+
<dd>
|
|
5801
|
+
|
|
5802
|
+
#### 📝 Description
|
|
5803
|
+
|
|
5804
|
+
<dl>
|
|
5805
|
+
<dd>
|
|
5806
|
+
|
|
5807
|
+
<dl>
|
|
5808
|
+
<dd>
|
|
5809
|
+
|
|
5810
|
+
Create/Update notification preferences for org in jwt
|
|
5811
|
+
|
|
5812
|
+
</dd>
|
|
5813
|
+
</dl>
|
|
5814
|
+
</dd>
|
|
5815
|
+
</dl>
|
|
5816
|
+
|
|
5817
|
+
#### 🔌 Usage
|
|
5818
|
+
|
|
5819
|
+
<dl>
|
|
5820
|
+
<dd>
|
|
5821
|
+
|
|
5822
|
+
<dl>
|
|
5823
|
+
<dd>
|
|
5824
|
+
|
|
5825
|
+
```typescript
|
|
5826
|
+
await client.notifications.shipper.postNotificationsPreferencesByOrgId({
|
|
5827
|
+
schema_version: 1,
|
|
5828
|
+
});
|
|
5829
|
+
```
|
|
5830
|
+
|
|
5831
|
+
</dd>
|
|
5832
|
+
</dl>
|
|
5833
|
+
</dd>
|
|
5834
|
+
</dl>
|
|
5835
|
+
|
|
5836
|
+
#### ⚙️ Parameters
|
|
5837
|
+
|
|
5838
|
+
<dl>
|
|
5839
|
+
<dd>
|
|
5840
|
+
|
|
5841
|
+
<dl>
|
|
5842
|
+
<dd>
|
|
5843
|
+
|
|
5844
|
+
**request:** `Chrt.notifications.ShipperNotificationPreferencesClientCreate1`
|
|
5845
|
+
|
|
5846
|
+
</dd>
|
|
5847
|
+
</dl>
|
|
5848
|
+
|
|
5849
|
+
<dl>
|
|
5850
|
+
<dd>
|
|
5851
|
+
|
|
5852
|
+
**requestOptions:** `Shipper.RequestOptions`
|
|
5853
|
+
|
|
5854
|
+
</dd>
|
|
5855
|
+
</dl>
|
|
5856
|
+
</dd>
|
|
5857
|
+
</dl>
|
|
5858
|
+
|
|
5859
|
+
</dd>
|
|
5860
|
+
</dl>
|
|
5861
|
+
</details>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/cjs/api/resources/{notificationsShipper → notifications/resources/shipper}/index.d.ts
RENAMED
|
File without changes
|
/package/dist/cjs/api/resources/{notificationsShipper → notifications/resources/shipper}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/esm/api/resources/{notificationsShipper → notifications/resources/shipper}/index.d.mts
RENAMED
|
File without changes
|
/package/dist/esm/api/resources/{notificationsShipper → notifications/resources/shipper}/index.mjs
RENAMED
|
File without changes
|