@databricks/sdk-notificationdestinations 0.34.0 → 0.35.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/dist/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v1/client.d.ts +25 -21
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +146 -185
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +3 -7
- package/dist/v1/index.js +4 -7
- package/dist/v1/model.d.ts +144 -141
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +230 -286
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +21 -17
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +60 -69
- package/dist/v1/transport.js.map +1 -1
- package/dist/v1/utils.d.ts +18 -14
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +76 -103
- package/dist/v1/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
package/dist/package.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.js","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|
package/dist/v1/client.d.ts
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { CreateNotificationDestinationRequest, DeleteNotificationDestinationRequest, Empty, GetNotificationDestinationRequest, ListNotificationDestinationsRequest, ListNotificationDestinationsResponse, ListNotificationDestinationsResult, NotificationDestination, UpdateNotificationDestinationRequest } from "./model.js";
|
|
2
|
+
import { CallOptions } from "@databricks/sdk-options/call";
|
|
3
|
+
import { ClientOptions } from "@databricks/sdk-options/client";
|
|
4
|
+
|
|
5
|
+
//#region src/v1/client.d.ts
|
|
6
|
+
declare class NotificationDestinationsClient {
|
|
7
|
+
private readonly options;
|
|
8
|
+
private readonly logger;
|
|
9
|
+
private readonly userAgent;
|
|
10
|
+
private config;
|
|
11
|
+
constructor(options: ClientOptions);
|
|
12
|
+
private resolveConfig;
|
|
13
|
+
/** Creates a notification destination. Requires workspace admin permissions. */
|
|
14
|
+
createNotificationDestination(req: CreateNotificationDestinationRequest, options?: CallOptions): Promise<NotificationDestination>;
|
|
15
|
+
/** Deletes a notification destination. Requires workspace admin permissions. */
|
|
16
|
+
deleteNotificationDestination(req: DeleteNotificationDestinationRequest, options?: CallOptions): Promise<Empty>;
|
|
17
|
+
/** Gets a notification destination. */
|
|
18
|
+
getNotificationDestination(req: GetNotificationDestinationRequest, options?: CallOptions): Promise<NotificationDestination>;
|
|
19
|
+
/** Lists notification destinations. */
|
|
20
|
+
listNotificationDestinations(req: ListNotificationDestinationsRequest, options?: CallOptions): Promise<ListNotificationDestinationsResponse>;
|
|
21
|
+
listNotificationDestinationsIter(req: ListNotificationDestinationsRequest, options?: CallOptions): AsyncGenerator<ListNotificationDestinationsResult>;
|
|
22
|
+
/** Updates a notification destination. Requires workspace admin permissions. At least one field is required in the request body. */
|
|
23
|
+
updateNotificationDestination(req: UpdateNotificationDestinationRequest, options?: CallOptions): Promise<NotificationDestination>;
|
|
22
24
|
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { NotificationDestinationsClient };
|
|
23
27
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/v1/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../../src/v1/client.ts"],"mappings":";;;;;cA2Ca,8BAAA;EAAA,iBACM,OAAA;EAAA,iBACA,MAAA;EAAA,iBAIA,SAAA;EAAA,QAIT,MAAA;cAEI,OAAA,EAAS,aAAA;EAAA,QAUb,aAAA;EAQI;EAFN,6BAAA,CACJ,GAAA,EAAK,oCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,uBAAA;EAAR;EA8BG,6BAAA,CACJ,GAAA,EAAK,oCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,KAAA;EADC;EA2BN,0BAAA,CACJ,GAAA,EAAK,iCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,uBAAA;EA7BR;EAuDG,4BAAA,CACJ,GAAA,EAAK,mCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,oCAAA;EAqCJ,gCAAA,CACL,GAAA,EAAK,mCAAA,EACL,OAAA,GAAU,WAAA,GACT,cAAA,CAAe,kCAAA;EArEP;EAoFL,6BAAA,CACJ,GAAA,EAAK,oCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,uBAAA;AAAA"}
|
package/dist/v1/client.js
CHANGED
|
@@ -1,188 +1,149 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { resolveClientConfig } from "./transport.js";
|
|
2
|
+
import { buildHttpRequest, executeCall, executeHttpCall, marshalRequest, parseResponse } from "./utils.js";
|
|
3
|
+
import { name, version } from "../package.js";
|
|
4
|
+
import { marshalCreateNotificationDestinationRequestSchema, marshalUpdateNotificationDestinationRequestSchema, unmarshalEmptySchema, unmarshalListNotificationDestinationsResponseSchema, unmarshalNotificationDestinationSchema } from "./model.js";
|
|
5
|
+
import { VERSION } from "@databricks/sdk-auth";
|
|
6
|
+
import { createDefault } from "@databricks/sdk-core/clientinfo";
|
|
7
|
+
import { NoOpLogger } from "@databricks/sdk-core/logger";
|
|
8
|
+
|
|
9
|
+
//#region src/v1/client.ts
|
|
10
10
|
const PACKAGE_SEGMENT = {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
key: "sdk-js-" + name.replace(/^@[^/]+\/sdk-/, ""),
|
|
12
|
+
value: version
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
const pageReq = { ...req };
|
|
150
|
-
for (;;) {
|
|
151
|
-
const resp = await this.listNotificationDestinations(pageReq, options);
|
|
152
|
-
for (const item of resp.results ?? []) {
|
|
153
|
-
yield item;
|
|
154
|
-
}
|
|
155
|
-
if (resp.nextPageToken === undefined || resp.nextPageToken === '') {
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
pageReq.pageToken = resp.nextPageToken;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
/** Updates a notification destination. Requires workspace admin permissions. At least one field is required in the request body. */
|
|
162
|
-
async updateNotificationDestination(req, options) {
|
|
163
|
-
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
164
|
-
const url = `${host}/api/2.0/notification-destinations/${req.id ?? ''}`;
|
|
165
|
-
const body = marshalRequest(req, marshalUpdateNotificationDestinationRequestSchema);
|
|
166
|
-
let resp;
|
|
167
|
-
const call = async (callSignal) => {
|
|
168
|
-
const headers = new Headers({ 'Content-Type': 'application/json' });
|
|
169
|
-
if (workspaceId !== undefined) {
|
|
170
|
-
headers.set('X-Databricks-Workspace-Id', workspaceId);
|
|
171
|
-
}
|
|
172
|
-
headers.set('User-Agent', this.userAgent);
|
|
173
|
-
const httpReq = buildHttpRequest('PATCH', url, headers, callSignal, body);
|
|
174
|
-
const respBody = await executeHttpCall({
|
|
175
|
-
request: httpReq,
|
|
176
|
-
httpClient,
|
|
177
|
-
logger: this.logger,
|
|
178
|
-
});
|
|
179
|
-
resp = parseResponse(respBody, unmarshalNotificationDestinationSchema);
|
|
180
|
-
};
|
|
181
|
-
await executeCall(call, options);
|
|
182
|
-
if (resp === undefined) {
|
|
183
|
-
throw new Error('operation completed without a result.');
|
|
184
|
-
}
|
|
185
|
-
return resp;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
14
|
+
var NotificationDestinationsClient = class {
|
|
15
|
+
options;
|
|
16
|
+
logger;
|
|
17
|
+
userAgent;
|
|
18
|
+
config;
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this.options = options;
|
|
21
|
+
this.logger = options.logger ?? new NoOpLogger();
|
|
22
|
+
this.userAgent = createDefault().with(PACKAGE_SEGMENT).with({
|
|
23
|
+
key: "sdk-js-auth",
|
|
24
|
+
value: VERSION
|
|
25
|
+
}).with({
|
|
26
|
+
key: "auth",
|
|
27
|
+
value: options.credentials?.name() ?? "default"
|
|
28
|
+
}).toString();
|
|
29
|
+
}
|
|
30
|
+
resolveConfig() {
|
|
31
|
+
this.config ??= resolveClientConfig(this.options);
|
|
32
|
+
return this.config;
|
|
33
|
+
}
|
|
34
|
+
/** Creates a notification destination. Requires workspace admin permissions. */
|
|
35
|
+
async createNotificationDestination(req, options) {
|
|
36
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
37
|
+
const url = `${host}/api/2.0/notification-destinations`;
|
|
38
|
+
const body = marshalRequest(req, marshalCreateNotificationDestinationRequestSchema);
|
|
39
|
+
let resp;
|
|
40
|
+
const call = async (callSignal) => {
|
|
41
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
42
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
43
|
+
headers.set("User-Agent", this.userAgent);
|
|
44
|
+
resp = parseResponse(await executeHttpCall({
|
|
45
|
+
request: buildHttpRequest("POST", url, headers, callSignal, body),
|
|
46
|
+
httpClient,
|
|
47
|
+
logger: this.logger
|
|
48
|
+
}), unmarshalNotificationDestinationSchema);
|
|
49
|
+
};
|
|
50
|
+
await executeCall(call, options);
|
|
51
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
52
|
+
return resp;
|
|
53
|
+
}
|
|
54
|
+
/** Deletes a notification destination. Requires workspace admin permissions. */
|
|
55
|
+
async deleteNotificationDestination(req, options) {
|
|
56
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
57
|
+
const url = `${host}/api/2.0/notification-destinations/${req.id ?? ""}`;
|
|
58
|
+
let resp;
|
|
59
|
+
const call = async (callSignal) => {
|
|
60
|
+
const headers = new Headers();
|
|
61
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
62
|
+
headers.set("User-Agent", this.userAgent);
|
|
63
|
+
resp = parseResponse(await executeHttpCall({
|
|
64
|
+
request: buildHttpRequest("DELETE", url, headers, callSignal),
|
|
65
|
+
httpClient,
|
|
66
|
+
logger: this.logger
|
|
67
|
+
}), unmarshalEmptySchema);
|
|
68
|
+
};
|
|
69
|
+
await executeCall(call, options);
|
|
70
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
71
|
+
return resp;
|
|
72
|
+
}
|
|
73
|
+
/** Gets a notification destination. */
|
|
74
|
+
async getNotificationDestination(req, options) {
|
|
75
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
76
|
+
const url = `${host}/api/2.0/notification-destinations/${req.id ?? ""}`;
|
|
77
|
+
let resp;
|
|
78
|
+
const call = async (callSignal) => {
|
|
79
|
+
const headers = new Headers();
|
|
80
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
81
|
+
headers.set("User-Agent", this.userAgent);
|
|
82
|
+
resp = parseResponse(await executeHttpCall({
|
|
83
|
+
request: buildHttpRequest("GET", url, headers, callSignal),
|
|
84
|
+
httpClient,
|
|
85
|
+
logger: this.logger
|
|
86
|
+
}), unmarshalNotificationDestinationSchema);
|
|
87
|
+
};
|
|
88
|
+
await executeCall(call, options);
|
|
89
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
90
|
+
return resp;
|
|
91
|
+
}
|
|
92
|
+
/** Lists notification destinations. */
|
|
93
|
+
async listNotificationDestinations(req, options) {
|
|
94
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
95
|
+
const url = `${host}/api/2.0/notification-destinations`;
|
|
96
|
+
const params = new URLSearchParams();
|
|
97
|
+
if (req.pageToken !== void 0) params.append("page_token", req.pageToken);
|
|
98
|
+
if (req.pageSize !== void 0) params.append("page_size", String(req.pageSize));
|
|
99
|
+
const query = params.toString();
|
|
100
|
+
const fullUrl = query !== "" ? `${url}?${query}` : url;
|
|
101
|
+
let resp;
|
|
102
|
+
const call = async (callSignal) => {
|
|
103
|
+
const headers = new Headers();
|
|
104
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
105
|
+
headers.set("User-Agent", this.userAgent);
|
|
106
|
+
resp = parseResponse(await executeHttpCall({
|
|
107
|
+
request: buildHttpRequest("GET", fullUrl, headers, callSignal),
|
|
108
|
+
httpClient,
|
|
109
|
+
logger: this.logger
|
|
110
|
+
}), unmarshalListNotificationDestinationsResponseSchema);
|
|
111
|
+
};
|
|
112
|
+
await executeCall(call, options);
|
|
113
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
114
|
+
return resp;
|
|
115
|
+
}
|
|
116
|
+
async *listNotificationDestinationsIter(req, options) {
|
|
117
|
+
const pageReq = { ...req };
|
|
118
|
+
for (;;) {
|
|
119
|
+
const resp = await this.listNotificationDestinations(pageReq, options);
|
|
120
|
+
for (const item of resp.results ?? []) yield item;
|
|
121
|
+
if (resp.nextPageToken === void 0 || resp.nextPageToken === "") return;
|
|
122
|
+
pageReq.pageToken = resp.nextPageToken;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/** Updates a notification destination. Requires workspace admin permissions. At least one field is required in the request body. */
|
|
126
|
+
async updateNotificationDestination(req, options) {
|
|
127
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
128
|
+
const url = `${host}/api/2.0/notification-destinations/${req.id ?? ""}`;
|
|
129
|
+
const body = marshalRequest(req, marshalUpdateNotificationDestinationRequestSchema);
|
|
130
|
+
let resp;
|
|
131
|
+
const call = async (callSignal) => {
|
|
132
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
133
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
134
|
+
headers.set("User-Agent", this.userAgent);
|
|
135
|
+
resp = parseResponse(await executeHttpCall({
|
|
136
|
+
request: buildHttpRequest("PATCH", url, headers, callSignal, body),
|
|
137
|
+
httpClient,
|
|
138
|
+
logger: this.logger
|
|
139
|
+
}), unmarshalNotificationDestinationSchema);
|
|
140
|
+
};
|
|
141
|
+
await executeCall(call, options);
|
|
142
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
143
|
+
return resp;
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
//#endregion
|
|
148
|
+
export { NotificationDestinationsClient };
|
|
188
149
|
//# sourceMappingURL=client.js.map
|
package/dist/v1/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/v1/client.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,aAAa,EAAC,MAAM,iCAAiC,CAAC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,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;YAC1C,MAAM,OAAO,GAAG,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;YAC1E,MAAM,QAAQ,GAAG,MAAM,eAAe,CAAC;gBACrC,OAAO,EAAE,OAAO;gBAChB,UAAU;gBACV,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC,CAAC;YACH,IAAI,GAAG,aAAa,CAAC,QAAQ,EAAE,sCAAsC,CAAC,CAAC;QACzE,CAAC,CAAC;QACF,MAAM,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACjC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"client.js","names":["pkgJson.version","AUTH_VERSION"],"sources":["../../src/v1/client.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {VERSION as AUTH_VERSION} from '@databricks/sdk-auth';\nimport {createDefault} from '@databricks/sdk-core/clientinfo';\nimport type {Logger} from '@databricks/sdk-core/logger';\nimport {NoOpLogger} from '@databricks/sdk-core/logger';\nimport type {CallOptions} from '@databricks/sdk-options/call';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\nimport type {ResolvedClientConfig} from './transport';\nimport {resolveClientConfig} from './transport';\nimport {\n buildHttpRequest,\n executeCall,\n executeHttpCall,\n marshalRequest,\n parseResponse,\n} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n CreateNotificationDestinationRequest,\n DeleteNotificationDestinationRequest,\n Empty,\n GetNotificationDestinationRequest,\n ListNotificationDestinationsRequest,\n ListNotificationDestinationsResponse,\n ListNotificationDestinationsResult,\n NotificationDestination,\n UpdateNotificationDestinationRequest,\n} from './model';\nimport {\n marshalCreateNotificationDestinationRequestSchema,\n marshalUpdateNotificationDestinationRequestSchema,\n unmarshalEmptySchema,\n unmarshalListNotificationDestinationsResponseSchema,\n unmarshalNotificationDestinationSchema,\n} from './model';\n\n// Package identity segment for this client to be used in the User-Agent header.\nconst PACKAGE_SEGMENT = {\n key: 'sdk-js-' + pkgJson.name.replace(/^@[^/]+\\/sdk-/, ''),\n value: pkgJson.version,\n};\n\nexport class NotificationDestinationsClient {\n private readonly options: ClientOptions;\n private readonly logger: Logger;\n // User-Agent header value. Composed once at construction from\n // createDefault() merged with this package's identity and the active\n // credential's name.\n private readonly userAgent: string;\n // Memoized configuration. The profile is resolved once, lazily, on the first\n // request, then reused; host, workspaceId/accountId, and credentials are\n // filled from it when not set explicitly on the options.\n private config: Promise<ResolvedClientConfig> | undefined;\n\n constructor(options: ClientOptions) {\n this.options = options;\n this.logger = options.logger ?? new NoOpLogger();\n const info = createDefault()\n .with(PACKAGE_SEGMENT)\n .with({key: 'sdk-js-auth', value: AUTH_VERSION})\n .with({key: 'auth', value: options.credentials?.name() ?? 'default'});\n this.userAgent = info.toString();\n }\n\n private resolveConfig(): Promise<ResolvedClientConfig> {\n this.config ??= resolveClientConfig(this.options);\n return this.config;\n }\n\n /** Creates a notification destination. Requires workspace admin permissions. */\n async createNotificationDestination(\n req: CreateNotificationDestinationRequest,\n options?: CallOptions\n ): Promise<NotificationDestination> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/notification-destinations`;\n const body = marshalRequest(\n req,\n marshalCreateNotificationDestinationRequestSchema\n );\n let resp: NotificationDestination | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalNotificationDestinationSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Deletes a notification destination. Requires workspace admin permissions. */\n async deleteNotificationDestination(\n req: DeleteNotificationDestinationRequest,\n options?: CallOptions\n ): Promise<Empty> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/notification-destinations/${req.id ?? ''}`;\n let resp: Empty | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalEmptySchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Gets a notification destination. */\n async getNotificationDestination(\n req: GetNotificationDestinationRequest,\n options?: CallOptions\n ): Promise<NotificationDestination> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/notification-destinations/${req.id ?? ''}`;\n let resp: NotificationDestination | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalNotificationDestinationSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Lists notification destinations. */\n async listNotificationDestinations(\n req: ListNotificationDestinationsRequest,\n options?: CallOptions\n ): Promise<ListNotificationDestinationsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/notification-destinations`;\n const params = new URLSearchParams();\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListNotificationDestinationsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalListNotificationDestinationsResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listNotificationDestinationsIter(\n req: ListNotificationDestinationsRequest,\n options?: CallOptions\n ): AsyncGenerator<ListNotificationDestinationsResult> {\n const pageReq: ListNotificationDestinationsRequest = {...req};\n for (;;) {\n const resp = await this.listNotificationDestinations(pageReq, options);\n for (const item of resp.results ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Updates a notification destination. Requires workspace admin permissions. At least one field is required in the request body. */\n async updateNotificationDestination(\n req: UpdateNotificationDestinationRequest,\n options?: CallOptions\n ): Promise<NotificationDestination> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/notification-destinations/${req.id ?? ''}`;\n const body = marshalRequest(\n req,\n marshalUpdateNotificationDestinationRequestSchema\n );\n let resp: NotificationDestination | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PATCH', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalNotificationDestinationSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n}\n"],"mappings":";;;;;;;;;AAsCA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,iCAAb,MAA4C;CAC1C,AAAiB;CACjB,AAAiB;CAIjB,AAAiB;CAIjB,AAAQ;CAER,YAAY,SAAwB;AAClC,OAAK,UAAU;AACf,OAAK,SAAS,QAAQ,UAAU,IAAI,YAAY;AAKhD,OAAK,YAJQ,eAAe,CACzB,KAAK,gBAAgB,CACrB,KAAK;GAAC,KAAK;GAAe,OAAOC;GAAa,CAAC,CAC/C,KAAK;GAAC,KAAK;GAAQ,OAAO,QAAQ,aAAa,MAAM,IAAI;GAAU,CAAC,CACjD,UAAU;;CAGlC,AAAQ,gBAA+C;AACrD,OAAK,WAAW,oBAAoB,KAAK,QAAQ;AACjD,SAAO,KAAK;;;CAId,MAAM,8BACJ,KACA,SACkC;EAClC,MAAM,EAAC,MAAM,aAAa,eAAc,MAAM,KAAK,eAAe;EAClE,MAAM,MAAM,GAAG,KAAK;EACpB,MAAM,OAAO,eACX,KACA,kDACD;EACD,IAAI;EACJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,UAAU,IAAI,QAAQ,EAAC,gBAAgB,oBAAmB,CAAC;AACjE,OAAI,gBAAgB,OAClB,SAAQ,IAAI,6BAA6B,YAAY;AAEvD,WAAQ,IAAI,cAAc,KAAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,QAAQ,KAAK,SAAS,YAAY,KAAK;IAGtE;IACA,QAAQ,KAA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BAAgB,oBAAmB,CAAC;AACjE,OAAI,gBAAgB,OAClB,SAAQ,IAAI,6BAA6B,YAAY;AAEvD,WAAQ,IAAI,cAAc,KAAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,SAAS,KAAK,SAAS,YAAY,KAAK;IAGvE;IACA,QAAQ,KAAK;IACd,CAAC,EAC6B,uCAAuC;;AAExE,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO"}
|
package/dist/v1/index.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { NotificationDestinationsClient } from './client';
|
|
5
|
-
export { DestinationType } from './model';
|
|
6
|
-
export type { Config, CreateNotificationDestinationRequest, DeleteNotificationDestinationRequest, EmailConfig, Empty, GenericWebhookConfig, GetNotificationDestinationRequest, ListNotificationDestinationsRequest, ListNotificationDestinationsResponse, ListNotificationDestinationsResult, MicrosoftTeamsConfig, NotificationDestination, PagerdutyConfig, SlackConfig, UpdateNotificationDestinationRequest, } from './model';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { Config, CreateNotificationDestinationRequest, DeleteNotificationDestinationRequest, DestinationType, EmailConfig, Empty, GenericWebhookConfig, GetNotificationDestinationRequest, ListNotificationDestinationsRequest, ListNotificationDestinationsResponse, ListNotificationDestinationsResult, MicrosoftTeamsConfig, NotificationDestination, PagerdutyConfig, SlackConfig, UpdateNotificationDestinationRequest } from "./model.js";
|
|
2
|
+
import { NotificationDestinationsClient } from "./client.js";
|
|
3
|
+
export { type Config, type CreateNotificationDestinationRequest, type DeleteNotificationDestinationRequest, DestinationType, type EmailConfig, type Empty, type GenericWebhookConfig, type GetNotificationDestinationRequest, type ListNotificationDestinationsRequest, type ListNotificationDestinationsResponse, type ListNotificationDestinationsResult, type MicrosoftTeamsConfig, type NotificationDestination, NotificationDestinationsClient, type PagerdutyConfig, type SlackConfig, type UpdateNotificationDestinationRequest };
|
package/dist/v1/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { NotificationDestinationsClient } from './client';
|
|
6
|
-
export { DestinationType } from './model';
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { DestinationType } from "./model.js";
|
|
2
|
+
import { NotificationDestinationsClient } from "./client.js";
|
|
3
|
+
|
|
4
|
+
export { DestinationType, NotificationDestinationsClient };
|