weave-typescript 0.11.14 → 0.11.15

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.
Files changed (63) hide show
  1. package/dist/weaveapi/data/v1/data.pb.d.ts +54 -0
  2. package/dist/weaveapi/data/v1/data.pb.js +411 -0
  3. package/dist/weaveapi/data/v1/service.pb.d.ts +213 -0
  4. package/dist/weaveapi/data/v1/service.pb.js +1948 -0
  5. package/dist/weaveapi/input/v1/input.pb.d.ts +77 -0
  6. package/dist/weaveapi/input/v1/input.pb.js +632 -0
  7. package/dist/weaveapi/input/v1/service.pb.d.ts +311 -0
  8. package/dist/weaveapi/input/v1/service.pb.js +3001 -0
  9. package/dist/weaveapi/integration/v1/integration.pb.d.ts +67 -0
  10. package/dist/weaveapi/integration/v1/integration.pb.js +486 -0
  11. package/dist/weaveapi/integration/v1/service.pb.d.ts +236 -0
  12. package/dist/weaveapi/integration/v1/service.pb.js +2220 -0
  13. package/dist/weaveapi/report/v1/report.pb.d.ts +79 -0
  14. package/dist/weaveapi/report/v1/report.pb.js +638 -0
  15. package/dist/weaveapi/report/v1/service.pb.d.ts +194 -0
  16. package/dist/weaveapi/report/v1/service.pb.js +1630 -0
  17. package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +70 -0
  18. package/dist/weaveapi/requirement/v1/requirement.pb.js +570 -0
  19. package/dist/weaveapi/requirement/v1/service.pb.d.ts +310 -0
  20. package/dist/weaveapi/requirement/v1/service.pb.js +2978 -0
  21. package/dist/weaveapi/run/v1/run.pb.d.ts +116 -0
  22. package/dist/weaveapi/run/v1/run.pb.js +1135 -0
  23. package/dist/weaveapi/run/v1/service.pb.d.ts +229 -0
  24. package/dist/weaveapi/run/v1/service.pb.js +2106 -0
  25. package/dist/weaveapi/script/v1/script.pb.d.ts +102 -0
  26. package/dist/weaveapi/script/v1/script.pb.js +1025 -0
  27. package/dist/weaveapi/script/v1/service.pb.d.ts +426 -0
  28. package/dist/weaveapi/script/v1/service.pb.js +4399 -0
  29. package/dist/weaveapi/storage/v1/service.pb.d.ts +4 -0
  30. package/dist/weaveapi/storage/v1/service.pb.js +50 -7
  31. package/dist/weaveapi/storage/v1/storage.pb.d.ts +2 -0
  32. package/dist/weaveapi/storage/v1/storage.pb.js +23 -0
  33. package/dist/weaveapi/storage/v1/vcs.pb.d.ts +75 -0
  34. package/dist/weaveapi/storage/v1/vcs.pb.js +864 -0
  35. package/dist/weaveapi/suite/v1/service.pb.d.ts +373 -0
  36. package/dist/weaveapi/suite/v1/service.pb.js +3629 -0
  37. package/dist/weaveapi/suite/v1/suite.pb.d.ts +92 -0
  38. package/dist/weaveapi/suite/v1/suite.pb.js +876 -0
  39. package/dist/weaveapi/testcase/v1/service.pb.d.ts +422 -0
  40. package/dist/weaveapi/testcase/v1/service.pb.js +4254 -0
  41. package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +91 -0
  42. package/dist/weaveapi/testcase/v1/testcase.pb.js +794 -0
  43. package/dist/weavesql/weavedb/data_asset_sql.d.ts +141 -0
  44. package/dist/weavesql/weavedb/data_asset_sql.js +217 -0
  45. package/dist/weavesql/weavedb/input_sql.d.ts +230 -0
  46. package/dist/weavesql/weavedb/input_sql.js +384 -0
  47. package/dist/weavesql/weavedb/integration_sql.d.ts +170 -0
  48. package/dist/weavesql/weavedb/integration_sql.js +258 -0
  49. package/dist/weavesql/weavedb/report_sql.d.ts +138 -0
  50. package/dist/weavesql/weavedb/report_sql.js +232 -0
  51. package/dist/weavesql/weavedb/requirement_sql.d.ts +168 -0
  52. package/dist/weavesql/weavedb/requirement_sql.js +283 -0
  53. package/dist/weavesql/weavedb/run_sql.d.ts +247 -0
  54. package/dist/weavesql/weavedb/run_sql.js +415 -0
  55. package/dist/weavesql/weavedb/suite_sql.d.ts +228 -0
  56. package/dist/weavesql/weavedb/suite_sql.js +399 -0
  57. package/dist/weavesql/weavedb/test_case_sql.d.ts +261 -0
  58. package/dist/weavesql/weavedb/test_case_sql.js +446 -0
  59. package/dist/weavesql/weavedb/test_script_sql.d.ts +290 -0
  60. package/dist/weavesql/weavedb/test_script_sql.js +488 -0
  61. package/dist/weavesql/weavedb/traceability_sql.d.ts +59 -0
  62. package/dist/weavesql/weavedb/traceability_sql.js +155 -0
  63. package/package.json +1 -1
@@ -0,0 +1,67 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "weaveapi.integration.v1";
3
+ export declare enum IntegrationType {
4
+ INTEGRATION_TYPE_UNSPECIFIED = 0,
5
+ INTEGRATION_TYPE_API = 1,
6
+ INTEGRATION_TYPE_WEB_UI = 2,
7
+ INTEGRATION_TYPE_KAFKA = 3,
8
+ INTEGRATION_TYPE_DATABASE = 4,
9
+ INTEGRATION_TYPE_STORAGE = 5,
10
+ INTEGRATION_TYPE_WEBHOOK = 6,
11
+ INTEGRATION_TYPE_OTHER = 7,
12
+ UNRECOGNIZED = -1
13
+ }
14
+ export declare function integrationTypeFromJSON(object: any): IntegrationType;
15
+ export declare function integrationTypeToJSON(object: IntegrationType): string;
16
+ export declare enum IntegrationStatus {
17
+ INTEGRATION_STATUS_UNSPECIFIED = 0,
18
+ INTEGRATION_STATUS_DRAFT = 1,
19
+ INTEGRATION_STATUS_HEALTHY = 2,
20
+ INTEGRATION_STATUS_DEGRADED = 3,
21
+ INTEGRATION_STATUS_FAILED = 4,
22
+ INTEGRATION_STATUS_ARCHIVED = 5,
23
+ UNRECOGNIZED = -1
24
+ }
25
+ export declare function integrationStatusFromJSON(object: any): IntegrationStatus;
26
+ export declare function integrationStatusToJSON(object: IntegrationStatus): string;
27
+ export interface IntegrationEndpoint {
28
+ integrationEndpointId: string;
29
+ workflowId: string;
30
+ name: string;
31
+ description: string;
32
+ integrationType: IntegrationType;
33
+ status: IntegrationStatus;
34
+ targetUri: string;
35
+ authReference: string;
36
+ config: {
37
+ [key: string]: any;
38
+ } | undefined;
39
+ metadata: {
40
+ [key: string]: any;
41
+ } | undefined;
42
+ lastError: string;
43
+ lastCheckedAt: Date | undefined;
44
+ createdAt: Date | undefined;
45
+ updatedAt: Date | undefined;
46
+ archivedAt: Date | undefined;
47
+ }
48
+ export declare const IntegrationEndpoint: MessageFns<IntegrationEndpoint>;
49
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
50
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
51
+ [K in keyof T]?: DeepPartial<T[K]>;
52
+ } : Partial<T>;
53
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
54
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
55
+ [K in keyof P]: Exact<P[K], I[K]>;
56
+ } & {
57
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
58
+ };
59
+ export interface MessageFns<T> {
60
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
61
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
62
+ fromJSON(object: any): T;
63
+ toJSON(message: T): unknown;
64
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
65
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
66
+ }
67
+ export {};
@@ -0,0 +1,486 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc unknown
6
+ // source: weaveapi/integration/v1/integration.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.IntegrationEndpoint = exports.IntegrationStatus = exports.IntegrationType = exports.protobufPackage = void 0;
9
+ exports.integrationTypeFromJSON = integrationTypeFromJSON;
10
+ exports.integrationTypeToJSON = integrationTypeToJSON;
11
+ exports.integrationStatusFromJSON = integrationStatusFromJSON;
12
+ exports.integrationStatusToJSON = integrationStatusToJSON;
13
+ /* eslint-disable */
14
+ const wire_1 = require("@bufbuild/protobuf/wire");
15
+ const struct_pb_1 = require("../../../google/protobuf/struct.pb");
16
+ const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
17
+ exports.protobufPackage = "weaveapi.integration.v1";
18
+ var IntegrationType;
19
+ (function (IntegrationType) {
20
+ IntegrationType[IntegrationType["INTEGRATION_TYPE_UNSPECIFIED"] = 0] = "INTEGRATION_TYPE_UNSPECIFIED";
21
+ IntegrationType[IntegrationType["INTEGRATION_TYPE_API"] = 1] = "INTEGRATION_TYPE_API";
22
+ IntegrationType[IntegrationType["INTEGRATION_TYPE_WEB_UI"] = 2] = "INTEGRATION_TYPE_WEB_UI";
23
+ IntegrationType[IntegrationType["INTEGRATION_TYPE_KAFKA"] = 3] = "INTEGRATION_TYPE_KAFKA";
24
+ IntegrationType[IntegrationType["INTEGRATION_TYPE_DATABASE"] = 4] = "INTEGRATION_TYPE_DATABASE";
25
+ IntegrationType[IntegrationType["INTEGRATION_TYPE_STORAGE"] = 5] = "INTEGRATION_TYPE_STORAGE";
26
+ IntegrationType[IntegrationType["INTEGRATION_TYPE_WEBHOOK"] = 6] = "INTEGRATION_TYPE_WEBHOOK";
27
+ IntegrationType[IntegrationType["INTEGRATION_TYPE_OTHER"] = 7] = "INTEGRATION_TYPE_OTHER";
28
+ IntegrationType[IntegrationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
29
+ })(IntegrationType || (exports.IntegrationType = IntegrationType = {}));
30
+ function integrationTypeFromJSON(object) {
31
+ switch (object) {
32
+ case 0:
33
+ case "INTEGRATION_TYPE_UNSPECIFIED":
34
+ return IntegrationType.INTEGRATION_TYPE_UNSPECIFIED;
35
+ case 1:
36
+ case "INTEGRATION_TYPE_API":
37
+ return IntegrationType.INTEGRATION_TYPE_API;
38
+ case 2:
39
+ case "INTEGRATION_TYPE_WEB_UI":
40
+ return IntegrationType.INTEGRATION_TYPE_WEB_UI;
41
+ case 3:
42
+ case "INTEGRATION_TYPE_KAFKA":
43
+ return IntegrationType.INTEGRATION_TYPE_KAFKA;
44
+ case 4:
45
+ case "INTEGRATION_TYPE_DATABASE":
46
+ return IntegrationType.INTEGRATION_TYPE_DATABASE;
47
+ case 5:
48
+ case "INTEGRATION_TYPE_STORAGE":
49
+ return IntegrationType.INTEGRATION_TYPE_STORAGE;
50
+ case 6:
51
+ case "INTEGRATION_TYPE_WEBHOOK":
52
+ return IntegrationType.INTEGRATION_TYPE_WEBHOOK;
53
+ case 7:
54
+ case "INTEGRATION_TYPE_OTHER":
55
+ return IntegrationType.INTEGRATION_TYPE_OTHER;
56
+ case -1:
57
+ case "UNRECOGNIZED":
58
+ default:
59
+ return IntegrationType.UNRECOGNIZED;
60
+ }
61
+ }
62
+ function integrationTypeToJSON(object) {
63
+ switch (object) {
64
+ case IntegrationType.INTEGRATION_TYPE_UNSPECIFIED:
65
+ return "INTEGRATION_TYPE_UNSPECIFIED";
66
+ case IntegrationType.INTEGRATION_TYPE_API:
67
+ return "INTEGRATION_TYPE_API";
68
+ case IntegrationType.INTEGRATION_TYPE_WEB_UI:
69
+ return "INTEGRATION_TYPE_WEB_UI";
70
+ case IntegrationType.INTEGRATION_TYPE_KAFKA:
71
+ return "INTEGRATION_TYPE_KAFKA";
72
+ case IntegrationType.INTEGRATION_TYPE_DATABASE:
73
+ return "INTEGRATION_TYPE_DATABASE";
74
+ case IntegrationType.INTEGRATION_TYPE_STORAGE:
75
+ return "INTEGRATION_TYPE_STORAGE";
76
+ case IntegrationType.INTEGRATION_TYPE_WEBHOOK:
77
+ return "INTEGRATION_TYPE_WEBHOOK";
78
+ case IntegrationType.INTEGRATION_TYPE_OTHER:
79
+ return "INTEGRATION_TYPE_OTHER";
80
+ case IntegrationType.UNRECOGNIZED:
81
+ default:
82
+ return "UNRECOGNIZED";
83
+ }
84
+ }
85
+ var IntegrationStatus;
86
+ (function (IntegrationStatus) {
87
+ IntegrationStatus[IntegrationStatus["INTEGRATION_STATUS_UNSPECIFIED"] = 0] = "INTEGRATION_STATUS_UNSPECIFIED";
88
+ IntegrationStatus[IntegrationStatus["INTEGRATION_STATUS_DRAFT"] = 1] = "INTEGRATION_STATUS_DRAFT";
89
+ IntegrationStatus[IntegrationStatus["INTEGRATION_STATUS_HEALTHY"] = 2] = "INTEGRATION_STATUS_HEALTHY";
90
+ IntegrationStatus[IntegrationStatus["INTEGRATION_STATUS_DEGRADED"] = 3] = "INTEGRATION_STATUS_DEGRADED";
91
+ IntegrationStatus[IntegrationStatus["INTEGRATION_STATUS_FAILED"] = 4] = "INTEGRATION_STATUS_FAILED";
92
+ IntegrationStatus[IntegrationStatus["INTEGRATION_STATUS_ARCHIVED"] = 5] = "INTEGRATION_STATUS_ARCHIVED";
93
+ IntegrationStatus[IntegrationStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
94
+ })(IntegrationStatus || (exports.IntegrationStatus = IntegrationStatus = {}));
95
+ function integrationStatusFromJSON(object) {
96
+ switch (object) {
97
+ case 0:
98
+ case "INTEGRATION_STATUS_UNSPECIFIED":
99
+ return IntegrationStatus.INTEGRATION_STATUS_UNSPECIFIED;
100
+ case 1:
101
+ case "INTEGRATION_STATUS_DRAFT":
102
+ return IntegrationStatus.INTEGRATION_STATUS_DRAFT;
103
+ case 2:
104
+ case "INTEGRATION_STATUS_HEALTHY":
105
+ return IntegrationStatus.INTEGRATION_STATUS_HEALTHY;
106
+ case 3:
107
+ case "INTEGRATION_STATUS_DEGRADED":
108
+ return IntegrationStatus.INTEGRATION_STATUS_DEGRADED;
109
+ case 4:
110
+ case "INTEGRATION_STATUS_FAILED":
111
+ return IntegrationStatus.INTEGRATION_STATUS_FAILED;
112
+ case 5:
113
+ case "INTEGRATION_STATUS_ARCHIVED":
114
+ return IntegrationStatus.INTEGRATION_STATUS_ARCHIVED;
115
+ case -1:
116
+ case "UNRECOGNIZED":
117
+ default:
118
+ return IntegrationStatus.UNRECOGNIZED;
119
+ }
120
+ }
121
+ function integrationStatusToJSON(object) {
122
+ switch (object) {
123
+ case IntegrationStatus.INTEGRATION_STATUS_UNSPECIFIED:
124
+ return "INTEGRATION_STATUS_UNSPECIFIED";
125
+ case IntegrationStatus.INTEGRATION_STATUS_DRAFT:
126
+ return "INTEGRATION_STATUS_DRAFT";
127
+ case IntegrationStatus.INTEGRATION_STATUS_HEALTHY:
128
+ return "INTEGRATION_STATUS_HEALTHY";
129
+ case IntegrationStatus.INTEGRATION_STATUS_DEGRADED:
130
+ return "INTEGRATION_STATUS_DEGRADED";
131
+ case IntegrationStatus.INTEGRATION_STATUS_FAILED:
132
+ return "INTEGRATION_STATUS_FAILED";
133
+ case IntegrationStatus.INTEGRATION_STATUS_ARCHIVED:
134
+ return "INTEGRATION_STATUS_ARCHIVED";
135
+ case IntegrationStatus.UNRECOGNIZED:
136
+ default:
137
+ return "UNRECOGNIZED";
138
+ }
139
+ }
140
+ function createBaseIntegrationEndpoint() {
141
+ return {
142
+ integrationEndpointId: "",
143
+ workflowId: "",
144
+ name: "",
145
+ description: "",
146
+ integrationType: 0,
147
+ status: 0,
148
+ targetUri: "",
149
+ authReference: "",
150
+ config: undefined,
151
+ metadata: undefined,
152
+ lastError: "",
153
+ lastCheckedAt: undefined,
154
+ createdAt: undefined,
155
+ updatedAt: undefined,
156
+ archivedAt: undefined,
157
+ };
158
+ }
159
+ exports.IntegrationEndpoint = {
160
+ encode(message, writer = new wire_1.BinaryWriter()) {
161
+ if (message.integrationEndpointId !== "") {
162
+ writer.uint32(10).string(message.integrationEndpointId);
163
+ }
164
+ if (message.workflowId !== "") {
165
+ writer.uint32(18).string(message.workflowId);
166
+ }
167
+ if (message.name !== "") {
168
+ writer.uint32(26).string(message.name);
169
+ }
170
+ if (message.description !== "") {
171
+ writer.uint32(34).string(message.description);
172
+ }
173
+ if (message.integrationType !== 0) {
174
+ writer.uint32(40).int32(message.integrationType);
175
+ }
176
+ if (message.status !== 0) {
177
+ writer.uint32(48).int32(message.status);
178
+ }
179
+ if (message.targetUri !== "") {
180
+ writer.uint32(58).string(message.targetUri);
181
+ }
182
+ if (message.authReference !== "") {
183
+ writer.uint32(66).string(message.authReference);
184
+ }
185
+ if (message.config !== undefined) {
186
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.config), writer.uint32(74).fork()).join();
187
+ }
188
+ if (message.metadata !== undefined) {
189
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(82).fork()).join();
190
+ }
191
+ if (message.lastError !== "") {
192
+ writer.uint32(90).string(message.lastError);
193
+ }
194
+ if (message.lastCheckedAt !== undefined) {
195
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.lastCheckedAt), writer.uint32(98).fork()).join();
196
+ }
197
+ if (message.createdAt !== undefined) {
198
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(106).fork()).join();
199
+ }
200
+ if (message.updatedAt !== undefined) {
201
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(114).fork()).join();
202
+ }
203
+ if (message.archivedAt !== undefined) {
204
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.archivedAt), writer.uint32(122).fork()).join();
205
+ }
206
+ return writer;
207
+ },
208
+ decode(input, length) {
209
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
210
+ const end = length === undefined ? reader.len : reader.pos + length;
211
+ const message = createBaseIntegrationEndpoint();
212
+ while (reader.pos < end) {
213
+ const tag = reader.uint32();
214
+ switch (tag >>> 3) {
215
+ case 1: {
216
+ if (tag !== 10) {
217
+ break;
218
+ }
219
+ message.integrationEndpointId = reader.string();
220
+ continue;
221
+ }
222
+ case 2: {
223
+ if (tag !== 18) {
224
+ break;
225
+ }
226
+ message.workflowId = reader.string();
227
+ continue;
228
+ }
229
+ case 3: {
230
+ if (tag !== 26) {
231
+ break;
232
+ }
233
+ message.name = reader.string();
234
+ continue;
235
+ }
236
+ case 4: {
237
+ if (tag !== 34) {
238
+ break;
239
+ }
240
+ message.description = reader.string();
241
+ continue;
242
+ }
243
+ case 5: {
244
+ if (tag !== 40) {
245
+ break;
246
+ }
247
+ message.integrationType = reader.int32();
248
+ continue;
249
+ }
250
+ case 6: {
251
+ if (tag !== 48) {
252
+ break;
253
+ }
254
+ message.status = reader.int32();
255
+ continue;
256
+ }
257
+ case 7: {
258
+ if (tag !== 58) {
259
+ break;
260
+ }
261
+ message.targetUri = reader.string();
262
+ continue;
263
+ }
264
+ case 8: {
265
+ if (tag !== 66) {
266
+ break;
267
+ }
268
+ message.authReference = reader.string();
269
+ continue;
270
+ }
271
+ case 9: {
272
+ if (tag !== 74) {
273
+ break;
274
+ }
275
+ message.config = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
276
+ continue;
277
+ }
278
+ case 10: {
279
+ if (tag !== 82) {
280
+ break;
281
+ }
282
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
283
+ continue;
284
+ }
285
+ case 11: {
286
+ if (tag !== 90) {
287
+ break;
288
+ }
289
+ message.lastError = reader.string();
290
+ continue;
291
+ }
292
+ case 12: {
293
+ if (tag !== 98) {
294
+ break;
295
+ }
296
+ message.lastCheckedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
297
+ continue;
298
+ }
299
+ case 13: {
300
+ if (tag !== 106) {
301
+ break;
302
+ }
303
+ message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
304
+ continue;
305
+ }
306
+ case 14: {
307
+ if (tag !== 114) {
308
+ break;
309
+ }
310
+ message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
311
+ continue;
312
+ }
313
+ case 15: {
314
+ if (tag !== 122) {
315
+ break;
316
+ }
317
+ message.archivedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
318
+ continue;
319
+ }
320
+ }
321
+ if ((tag & 7) === 4 || tag === 0) {
322
+ break;
323
+ }
324
+ reader.skip(tag & 7);
325
+ }
326
+ return message;
327
+ },
328
+ fromJSON(object) {
329
+ return {
330
+ integrationEndpointId: isSet(object.integrationEndpointId)
331
+ ? globalThis.String(object.integrationEndpointId)
332
+ : isSet(object.integration_endpoint_id)
333
+ ? globalThis.String(object.integration_endpoint_id)
334
+ : "",
335
+ workflowId: isSet(object.workflowId)
336
+ ? globalThis.String(object.workflowId)
337
+ : isSet(object.workflow_id)
338
+ ? globalThis.String(object.workflow_id)
339
+ : "",
340
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
341
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
342
+ integrationType: isSet(object.integrationType)
343
+ ? integrationTypeFromJSON(object.integrationType)
344
+ : isSet(object.integration_type)
345
+ ? integrationTypeFromJSON(object.integration_type)
346
+ : 0,
347
+ status: isSet(object.status) ? integrationStatusFromJSON(object.status) : 0,
348
+ targetUri: isSet(object.targetUri)
349
+ ? globalThis.String(object.targetUri)
350
+ : isSet(object.target_uri)
351
+ ? globalThis.String(object.target_uri)
352
+ : "",
353
+ authReference: isSet(object.authReference)
354
+ ? globalThis.String(object.authReference)
355
+ : isSet(object.auth_reference)
356
+ ? globalThis.String(object.auth_reference)
357
+ : "",
358
+ config: isObject(object.config) ? object.config : undefined,
359
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
360
+ lastError: isSet(object.lastError)
361
+ ? globalThis.String(object.lastError)
362
+ : isSet(object.last_error)
363
+ ? globalThis.String(object.last_error)
364
+ : "",
365
+ lastCheckedAt: isSet(object.lastCheckedAt)
366
+ ? fromJsonTimestamp(object.lastCheckedAt)
367
+ : isSet(object.last_checked_at)
368
+ ? fromJsonTimestamp(object.last_checked_at)
369
+ : undefined,
370
+ createdAt: isSet(object.createdAt)
371
+ ? fromJsonTimestamp(object.createdAt)
372
+ : isSet(object.created_at)
373
+ ? fromJsonTimestamp(object.created_at)
374
+ : undefined,
375
+ updatedAt: isSet(object.updatedAt)
376
+ ? fromJsonTimestamp(object.updatedAt)
377
+ : isSet(object.updated_at)
378
+ ? fromJsonTimestamp(object.updated_at)
379
+ : undefined,
380
+ archivedAt: isSet(object.archivedAt)
381
+ ? fromJsonTimestamp(object.archivedAt)
382
+ : isSet(object.archived_at)
383
+ ? fromJsonTimestamp(object.archived_at)
384
+ : undefined,
385
+ };
386
+ },
387
+ toJSON(message) {
388
+ const obj = {};
389
+ if (message.integrationEndpointId !== "") {
390
+ obj.integrationEndpointId = message.integrationEndpointId;
391
+ }
392
+ if (message.workflowId !== "") {
393
+ obj.workflowId = message.workflowId;
394
+ }
395
+ if (message.name !== "") {
396
+ obj.name = message.name;
397
+ }
398
+ if (message.description !== "") {
399
+ obj.description = message.description;
400
+ }
401
+ if (message.integrationType !== 0) {
402
+ obj.integrationType = integrationTypeToJSON(message.integrationType);
403
+ }
404
+ if (message.status !== 0) {
405
+ obj.status = integrationStatusToJSON(message.status);
406
+ }
407
+ if (message.targetUri !== "") {
408
+ obj.targetUri = message.targetUri;
409
+ }
410
+ if (message.authReference !== "") {
411
+ obj.authReference = message.authReference;
412
+ }
413
+ if (message.config !== undefined) {
414
+ obj.config = message.config;
415
+ }
416
+ if (message.metadata !== undefined) {
417
+ obj.metadata = message.metadata;
418
+ }
419
+ if (message.lastError !== "") {
420
+ obj.lastError = message.lastError;
421
+ }
422
+ if (message.lastCheckedAt !== undefined) {
423
+ obj.lastCheckedAt = message.lastCheckedAt.toISOString();
424
+ }
425
+ if (message.createdAt !== undefined) {
426
+ obj.createdAt = message.createdAt.toISOString();
427
+ }
428
+ if (message.updatedAt !== undefined) {
429
+ obj.updatedAt = message.updatedAt.toISOString();
430
+ }
431
+ if (message.archivedAt !== undefined) {
432
+ obj.archivedAt = message.archivedAt.toISOString();
433
+ }
434
+ return obj;
435
+ },
436
+ create(base) {
437
+ return exports.IntegrationEndpoint.fromPartial(base !== null && base !== void 0 ? base : {});
438
+ },
439
+ fromPartial(object) {
440
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
441
+ const message = createBaseIntegrationEndpoint();
442
+ message.integrationEndpointId = (_a = object.integrationEndpointId) !== null && _a !== void 0 ? _a : "";
443
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
444
+ message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
445
+ message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
446
+ message.integrationType = (_e = object.integrationType) !== null && _e !== void 0 ? _e : 0;
447
+ message.status = (_f = object.status) !== null && _f !== void 0 ? _f : 0;
448
+ message.targetUri = (_g = object.targetUri) !== null && _g !== void 0 ? _g : "";
449
+ message.authReference = (_h = object.authReference) !== null && _h !== void 0 ? _h : "";
450
+ message.config = (_j = object.config) !== null && _j !== void 0 ? _j : undefined;
451
+ message.metadata = (_k = object.metadata) !== null && _k !== void 0 ? _k : undefined;
452
+ message.lastError = (_l = object.lastError) !== null && _l !== void 0 ? _l : "";
453
+ message.lastCheckedAt = (_m = object.lastCheckedAt) !== null && _m !== void 0 ? _m : undefined;
454
+ message.createdAt = (_o = object.createdAt) !== null && _o !== void 0 ? _o : undefined;
455
+ message.updatedAt = (_p = object.updatedAt) !== null && _p !== void 0 ? _p : undefined;
456
+ message.archivedAt = (_q = object.archivedAt) !== null && _q !== void 0 ? _q : undefined;
457
+ return message;
458
+ },
459
+ };
460
+ function toTimestamp(date) {
461
+ const seconds = Math.trunc(date.getTime() / 1000);
462
+ const nanos = (date.getTime() % 1000) * 1000000;
463
+ return { seconds, nanos };
464
+ }
465
+ function fromTimestamp(t) {
466
+ let millis = (t.seconds || 0) * 1000;
467
+ millis += (t.nanos || 0) / 1000000;
468
+ return new globalThis.Date(millis);
469
+ }
470
+ function fromJsonTimestamp(o) {
471
+ if (o instanceof globalThis.Date) {
472
+ return o;
473
+ }
474
+ else if (typeof o === "string") {
475
+ return new globalThis.Date(o);
476
+ }
477
+ else {
478
+ return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
479
+ }
480
+ }
481
+ function isObject(value) {
482
+ return typeof value === "object" && value !== null;
483
+ }
484
+ function isSet(value) {
485
+ return value !== null && value !== undefined;
486
+ }