@wix/auto_sdk_crm_pipelines 1.0.5 → 1.0.7
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/build/cjs/index.d.ts +19 -7
- package/build/cjs/index.js +509 -23
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +9 -1
- package/build/cjs/index.typings.js +493 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +9 -1
- package/build/cjs/meta.js +7 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +19 -7
- package/build/es/index.mjs +498 -23
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +9 -1
- package/build/es/index.typings.mjs +482 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +9 -1
- package/build/es/meta.mjs +6 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +19 -7
- package/build/internal/cjs/index.js +509 -23
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +9 -1
- package/build/internal/cjs/index.typings.js +493 -7
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +9 -1
- package/build/internal/cjs/meta.js +7 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +19 -7
- package/build/internal/es/index.mjs +498 -23
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +9 -1
- package/build/internal/es/index.typings.mjs +482 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +9 -1
- package/build/internal/es/meta.mjs +6 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,12 +17,21 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// index.ts
|
|
21
31
|
var index_exports = {};
|
|
22
32
|
__export(index_exports, {
|
|
23
33
|
Outcome: () => Outcome,
|
|
34
|
+
PipelineType: () => PipelineType,
|
|
24
35
|
SortOrder: () => SortOrder,
|
|
25
36
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
26
37
|
bulkUpdatePipelineTags: () => bulkUpdatePipelineTags4,
|
|
@@ -328,6 +339,454 @@ function bulkUpdatePipelineTagsByFilter(payload) {
|
|
|
328
339
|
|
|
329
340
|
// src/crm-pipelines-v1-pipeline-pipelines.universal.ts
|
|
330
341
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
342
|
+
|
|
343
|
+
// src/crm-pipelines-v1-pipeline-pipelines.schemas.ts
|
|
344
|
+
var z = __toESM(require("zod"));
|
|
345
|
+
var CreatePipelineRequest = z.object({
|
|
346
|
+
pipeline: z.object({
|
|
347
|
+
_id: z.string().describe("Pipeline ID.").regex(
|
|
348
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
349
|
+
"Must be a valid GUID"
|
|
350
|
+
).optional().nullable(),
|
|
351
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
352
|
+
"Revision number, which increments by 1 each time the pipeline is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the pipeline.\n\nIgnored when creating a pipeline."
|
|
353
|
+
).optional().nullable(),
|
|
354
|
+
_createdDate: z.date().describe(
|
|
355
|
+
"Date and time the pipeline was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format."
|
|
356
|
+
).optional().nullable(),
|
|
357
|
+
_updatedDate: z.date().describe(
|
|
358
|
+
"Date and time the pipeline was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format."
|
|
359
|
+
).optional().nullable(),
|
|
360
|
+
name: z.string().describe("Pipeline name.").min(1).max(60),
|
|
361
|
+
currency: z.string().describe(
|
|
362
|
+
"Currency code for monetary values in this pipeline. Must be a valid ISO 4217 currency code. For example, `USD`.\n\nDefault: Based on the site's currency settings."
|
|
363
|
+
).optional().nullable(),
|
|
364
|
+
stages: z.array(
|
|
365
|
+
z.object({
|
|
366
|
+
_id: z.string().describe("Stage ID.").regex(
|
|
367
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
368
|
+
"Must be a valid GUID"
|
|
369
|
+
).optional().nullable(),
|
|
370
|
+
name: z.string().describe("Stage name.").min(1).max(40),
|
|
371
|
+
staleDurationInHours: z.number().int().describe(
|
|
372
|
+
"The duration (in hours) a card can remain in this stage before becoming stale.\nWhen a card exceeds this duration, it's marked as stale to indicate potential workflow delays."
|
|
373
|
+
).min(1).max(1e5).optional().nullable()
|
|
374
|
+
})
|
|
375
|
+
).min(1).max(30),
|
|
376
|
+
doneStage: z.object({
|
|
377
|
+
_id: z.string().describe("Done stage ID.").regex(
|
|
378
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
379
|
+
"Must be a valid GUID"
|
|
380
|
+
).optional().nullable(),
|
|
381
|
+
name: z.string().describe("Done stage name.").min(1).max(40),
|
|
382
|
+
allowedOutcomes: z.array(z.enum(["NONE", "WON", "LOST"])).min(1).max(3)
|
|
383
|
+
}).describe(
|
|
384
|
+
"The final pipeline stage where cards receive a final outcome."
|
|
385
|
+
),
|
|
386
|
+
extendedFields: z.object({
|
|
387
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
388
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
389
|
+
).optional()
|
|
390
|
+
}).describe("Extended fields data.").optional(),
|
|
391
|
+
tags: z.object({
|
|
392
|
+
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
393
|
+
"Tags that are exposed to anyone with access to the entity, including site members and visitors."
|
|
394
|
+
).optional()
|
|
395
|
+
}).describe("Tags for organizing and categorizing pipelines.").optional()
|
|
396
|
+
}).describe("Pipeline to create.")
|
|
397
|
+
});
|
|
398
|
+
var CreatePipelineResponse = z.object({
|
|
399
|
+
_id: z.string().describe("Pipeline ID.").regex(
|
|
400
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
401
|
+
"Must be a valid GUID"
|
|
402
|
+
).optional().nullable(),
|
|
403
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
404
|
+
"Revision number, which increments by 1 each time the pipeline is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the pipeline.\n\nIgnored when creating a pipeline."
|
|
405
|
+
).optional().nullable(),
|
|
406
|
+
_createdDate: z.date().describe(
|
|
407
|
+
"Date and time the pipeline was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format."
|
|
408
|
+
).optional().nullable(),
|
|
409
|
+
_updatedDate: z.date().describe(
|
|
410
|
+
"Date and time the pipeline was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format."
|
|
411
|
+
).optional().nullable(),
|
|
412
|
+
name: z.string().describe("Pipeline name.").min(1).max(60).optional().nullable(),
|
|
413
|
+
currency: z.string().describe(
|
|
414
|
+
"Currency code for monetary values in this pipeline. Must be a valid ISO 4217 currency code. For example, `USD`.\n\nDefault: Based on the site's currency settings."
|
|
415
|
+
).optional().nullable(),
|
|
416
|
+
stages: z.array(
|
|
417
|
+
z.object({
|
|
418
|
+
_id: z.string().describe("Stage ID.").regex(
|
|
419
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
420
|
+
"Must be a valid GUID"
|
|
421
|
+
).optional().nullable(),
|
|
422
|
+
name: z.string().describe("Stage name.").min(1).max(40).optional().nullable(),
|
|
423
|
+
staleDurationInHours: z.number().int().describe(
|
|
424
|
+
"The duration (in hours) a card can remain in this stage before becoming stale.\nWhen a card exceeds this duration, it's marked as stale to indicate potential workflow delays."
|
|
425
|
+
).min(1).max(1e5).optional().nullable()
|
|
426
|
+
})
|
|
427
|
+
).min(1).max(30).optional(),
|
|
428
|
+
doneStage: z.object({
|
|
429
|
+
_id: z.string().describe("Done stage ID.").regex(
|
|
430
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
431
|
+
"Must be a valid GUID"
|
|
432
|
+
).optional().nullable(),
|
|
433
|
+
name: z.string().describe("Done stage name.").min(1).max(40).optional().nullable(),
|
|
434
|
+
allowedOutcomes: z.array(z.enum(["NONE", "WON", "LOST"])).min(1).max(3).optional()
|
|
435
|
+
}).describe("The final pipeline stage where cards receive a final outcome.").optional(),
|
|
436
|
+
extendedFields: z.object({
|
|
437
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
438
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
439
|
+
).optional()
|
|
440
|
+
}).describe("Extended fields data.").optional(),
|
|
441
|
+
tags: z.object({
|
|
442
|
+
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
443
|
+
"Tags that are exposed to anyone with access to the entity, including site members and visitors."
|
|
444
|
+
).optional()
|
|
445
|
+
}).describe("Tags for organizing and categorizing pipelines.").optional()
|
|
446
|
+
});
|
|
447
|
+
var GetPipelineRequest = z.object({
|
|
448
|
+
pipelineId: z.string().describe("Pipeline ID to retrieve.").regex(
|
|
449
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
450
|
+
"Must be a valid GUID"
|
|
451
|
+
)
|
|
452
|
+
});
|
|
453
|
+
var GetPipelineResponse = z.object({
|
|
454
|
+
_id: z.string().describe("Pipeline ID.").regex(
|
|
455
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
456
|
+
"Must be a valid GUID"
|
|
457
|
+
).optional().nullable(),
|
|
458
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
459
|
+
"Revision number, which increments by 1 each time the pipeline is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the pipeline.\n\nIgnored when creating a pipeline."
|
|
460
|
+
).optional().nullable(),
|
|
461
|
+
_createdDate: z.date().describe(
|
|
462
|
+
"Date and time the pipeline was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format."
|
|
463
|
+
).optional().nullable(),
|
|
464
|
+
_updatedDate: z.date().describe(
|
|
465
|
+
"Date and time the pipeline was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format."
|
|
466
|
+
).optional().nullable(),
|
|
467
|
+
name: z.string().describe("Pipeline name.").min(1).max(60).optional().nullable(),
|
|
468
|
+
currency: z.string().describe(
|
|
469
|
+
"Currency code for monetary values in this pipeline. Must be a valid ISO 4217 currency code. For example, `USD`.\n\nDefault: Based on the site's currency settings."
|
|
470
|
+
).optional().nullable(),
|
|
471
|
+
stages: z.array(
|
|
472
|
+
z.object({
|
|
473
|
+
_id: z.string().describe("Stage ID.").regex(
|
|
474
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
475
|
+
"Must be a valid GUID"
|
|
476
|
+
).optional().nullable(),
|
|
477
|
+
name: z.string().describe("Stage name.").min(1).max(40).optional().nullable(),
|
|
478
|
+
staleDurationInHours: z.number().int().describe(
|
|
479
|
+
"The duration (in hours) a card can remain in this stage before becoming stale.\nWhen a card exceeds this duration, it's marked as stale to indicate potential workflow delays."
|
|
480
|
+
).min(1).max(1e5).optional().nullable()
|
|
481
|
+
})
|
|
482
|
+
).min(1).max(30).optional(),
|
|
483
|
+
doneStage: z.object({
|
|
484
|
+
_id: z.string().describe("Done stage ID.").regex(
|
|
485
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
486
|
+
"Must be a valid GUID"
|
|
487
|
+
).optional().nullable(),
|
|
488
|
+
name: z.string().describe("Done stage name.").min(1).max(40).optional().nullable(),
|
|
489
|
+
allowedOutcomes: z.array(z.enum(["NONE", "WON", "LOST"])).min(1).max(3).optional()
|
|
490
|
+
}).describe("The final pipeline stage where cards receive a final outcome.").optional(),
|
|
491
|
+
extendedFields: z.object({
|
|
492
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
493
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
494
|
+
).optional()
|
|
495
|
+
}).describe("Extended fields data.").optional(),
|
|
496
|
+
tags: z.object({
|
|
497
|
+
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
498
|
+
"Tags that are exposed to anyone with access to the entity, including site members and visitors."
|
|
499
|
+
).optional()
|
|
500
|
+
}).describe("Tags for organizing and categorizing pipelines.").optional()
|
|
501
|
+
});
|
|
502
|
+
var UpdatePipelineRequest = z.object({
|
|
503
|
+
_id: z.string().describe("Pipeline ID.").regex(
|
|
504
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
505
|
+
"Must be a valid GUID"
|
|
506
|
+
),
|
|
507
|
+
pipeline: z.object({
|
|
508
|
+
_id: z.string().describe("Pipeline ID.").regex(
|
|
509
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
510
|
+
"Must be a valid GUID"
|
|
511
|
+
).optional().nullable(),
|
|
512
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
513
|
+
"Revision number, which increments by 1 each time the pipeline is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the pipeline.\n\nIgnored when creating a pipeline."
|
|
514
|
+
),
|
|
515
|
+
_createdDate: z.date().describe(
|
|
516
|
+
"Date and time the pipeline was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format."
|
|
517
|
+
).optional().nullable(),
|
|
518
|
+
_updatedDate: z.date().describe(
|
|
519
|
+
"Date and time the pipeline was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format."
|
|
520
|
+
).optional().nullable(),
|
|
521
|
+
name: z.string().describe("Pipeline name.").min(1).max(60).optional().nullable(),
|
|
522
|
+
currency: z.string().describe(
|
|
523
|
+
"Currency code for monetary values in this pipeline. Must be a valid ISO 4217 currency code. For example, `USD`.\n\nDefault: Based on the site's currency settings."
|
|
524
|
+
).optional().nullable(),
|
|
525
|
+
stages: z.array(
|
|
526
|
+
z.object({
|
|
527
|
+
_id: z.string().describe("Stage ID.").regex(
|
|
528
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
529
|
+
"Must be a valid GUID"
|
|
530
|
+
).optional().nullable(),
|
|
531
|
+
name: z.string().describe("Stage name.").min(1).max(40).optional().nullable(),
|
|
532
|
+
staleDurationInHours: z.number().int().describe(
|
|
533
|
+
"The duration (in hours) a card can remain in this stage before becoming stale.\nWhen a card exceeds this duration, it's marked as stale to indicate potential workflow delays."
|
|
534
|
+
).min(1).max(1e5).optional().nullable()
|
|
535
|
+
})
|
|
536
|
+
).min(1).max(30).optional(),
|
|
537
|
+
doneStage: z.object({
|
|
538
|
+
_id: z.string().describe("Done stage ID.").regex(
|
|
539
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
540
|
+
"Must be a valid GUID"
|
|
541
|
+
).optional().nullable(),
|
|
542
|
+
name: z.string().describe("Done stage name.").min(1).max(40).optional().nullable(),
|
|
543
|
+
allowedOutcomes: z.array(z.enum(["NONE", "WON", "LOST"])).min(1).max(3).optional()
|
|
544
|
+
}).describe(
|
|
545
|
+
"The final pipeline stage where cards receive a final outcome."
|
|
546
|
+
).optional(),
|
|
547
|
+
extendedFields: z.object({
|
|
548
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
549
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
550
|
+
).optional()
|
|
551
|
+
}).describe("Extended fields data.").optional(),
|
|
552
|
+
tags: z.object({
|
|
553
|
+
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
554
|
+
"Tags that are exposed to anyone with access to the entity, including site members and visitors."
|
|
555
|
+
).optional()
|
|
556
|
+
}).describe("Tags for organizing and categorizing pipelines.").optional()
|
|
557
|
+
}).describe("Pipeline to update, may be partial.")
|
|
558
|
+
});
|
|
559
|
+
var UpdatePipelineResponse = z.object({
|
|
560
|
+
_id: z.string().describe("Pipeline ID.").regex(
|
|
561
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
562
|
+
"Must be a valid GUID"
|
|
563
|
+
).optional().nullable(),
|
|
564
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
565
|
+
"Revision number, which increments by 1 each time the pipeline is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the pipeline.\n\nIgnored when creating a pipeline."
|
|
566
|
+
).optional().nullable(),
|
|
567
|
+
_createdDate: z.date().describe(
|
|
568
|
+
"Date and time the pipeline was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format."
|
|
569
|
+
).optional().nullable(),
|
|
570
|
+
_updatedDate: z.date().describe(
|
|
571
|
+
"Date and time the pipeline was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format."
|
|
572
|
+
).optional().nullable(),
|
|
573
|
+
name: z.string().describe("Pipeline name.").min(1).max(60).optional().nullable(),
|
|
574
|
+
currency: z.string().describe(
|
|
575
|
+
"Currency code for monetary values in this pipeline. Must be a valid ISO 4217 currency code. For example, `USD`.\n\nDefault: Based on the site's currency settings."
|
|
576
|
+
).optional().nullable(),
|
|
577
|
+
stages: z.array(
|
|
578
|
+
z.object({
|
|
579
|
+
_id: z.string().describe("Stage ID.").regex(
|
|
580
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
581
|
+
"Must be a valid GUID"
|
|
582
|
+
).optional().nullable(),
|
|
583
|
+
name: z.string().describe("Stage name.").min(1).max(40).optional().nullable(),
|
|
584
|
+
staleDurationInHours: z.number().int().describe(
|
|
585
|
+
"The duration (in hours) a card can remain in this stage before becoming stale.\nWhen a card exceeds this duration, it's marked as stale to indicate potential workflow delays."
|
|
586
|
+
).min(1).max(1e5).optional().nullable()
|
|
587
|
+
})
|
|
588
|
+
).min(1).max(30).optional(),
|
|
589
|
+
doneStage: z.object({
|
|
590
|
+
_id: z.string().describe("Done stage ID.").regex(
|
|
591
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
592
|
+
"Must be a valid GUID"
|
|
593
|
+
).optional().nullable(),
|
|
594
|
+
name: z.string().describe("Done stage name.").min(1).max(40).optional().nullable(),
|
|
595
|
+
allowedOutcomes: z.array(z.enum(["NONE", "WON", "LOST"])).min(1).max(3).optional()
|
|
596
|
+
}).describe("The final pipeline stage where cards receive a final outcome.").optional(),
|
|
597
|
+
extendedFields: z.object({
|
|
598
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
599
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
600
|
+
).optional()
|
|
601
|
+
}).describe("Extended fields data.").optional(),
|
|
602
|
+
tags: z.object({
|
|
603
|
+
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
604
|
+
"Tags that are exposed to anyone with access to the entity, including site members and visitors."
|
|
605
|
+
).optional()
|
|
606
|
+
}).describe("Tags for organizing and categorizing pipelines.").optional()
|
|
607
|
+
});
|
|
608
|
+
var DeletePipelineRequest = z.object({
|
|
609
|
+
pipelineId: z.string().describe("Pipeline ID.").regex(
|
|
610
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
611
|
+
"Must be a valid GUID"
|
|
612
|
+
)
|
|
613
|
+
});
|
|
614
|
+
var DeletePipelineResponse = z.object({});
|
|
615
|
+
var QueryPipelinesRequest = z.object({
|
|
616
|
+
query: z.intersection(
|
|
617
|
+
z.object({
|
|
618
|
+
filter: z.record(z.string(), z.any()).describe(
|
|
619
|
+
"Filter object.\n\nLearn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section)."
|
|
620
|
+
).optional().nullable(),
|
|
621
|
+
sort: z.array(
|
|
622
|
+
z.object({
|
|
623
|
+
fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
624
|
+
order: z.enum(["ASC", "DESC"]).optional()
|
|
625
|
+
})
|
|
626
|
+
).max(5).optional()
|
|
627
|
+
}),
|
|
628
|
+
z.xor([
|
|
629
|
+
z.object({ cursorPaging: z.never().optional() }),
|
|
630
|
+
z.object({
|
|
631
|
+
cursorPaging: z.object({
|
|
632
|
+
limit: z.number().int().describe("Maximum number of items to return.").min(0).max(100).optional().nullable(),
|
|
633
|
+
cursor: z.string().describe(
|
|
634
|
+
"Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
635
|
+
).max(16e3).optional().nullable()
|
|
636
|
+
}).describe(
|
|
637
|
+
"Cursor paging options.\n\nLearn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging)."
|
|
638
|
+
)
|
|
639
|
+
})
|
|
640
|
+
])
|
|
641
|
+
).describe("Query options.")
|
|
642
|
+
});
|
|
643
|
+
var QueryPipelinesResponse = z.object({
|
|
644
|
+
pipelines: z.array(
|
|
645
|
+
z.object({
|
|
646
|
+
_id: z.string().describe("Pipeline ID.").regex(
|
|
647
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
648
|
+
"Must be a valid GUID"
|
|
649
|
+
).optional().nullable(),
|
|
650
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
651
|
+
"Revision number, which increments by 1 each time the pipeline is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the pipeline.\n\nIgnored when creating a pipeline."
|
|
652
|
+
).optional().nullable(),
|
|
653
|
+
_createdDate: z.date().describe(
|
|
654
|
+
"Date and time the pipeline was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format."
|
|
655
|
+
).optional().nullable(),
|
|
656
|
+
_updatedDate: z.date().describe(
|
|
657
|
+
"Date and time the pipeline was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format."
|
|
658
|
+
).optional().nullable(),
|
|
659
|
+
name: z.string().describe("Pipeline name.").min(1).max(60).optional().nullable(),
|
|
660
|
+
currency: z.string().describe(
|
|
661
|
+
"Currency code for monetary values in this pipeline. Must be a valid ISO 4217 currency code. For example, `USD`.\n\nDefault: Based on the site's currency settings."
|
|
662
|
+
).optional().nullable(),
|
|
663
|
+
stages: z.array(
|
|
664
|
+
z.object({
|
|
665
|
+
_id: z.string().describe("Stage ID.").regex(
|
|
666
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
667
|
+
"Must be a valid GUID"
|
|
668
|
+
).optional().nullable(),
|
|
669
|
+
name: z.string().describe("Stage name.").min(1).max(40).optional().nullable(),
|
|
670
|
+
staleDurationInHours: z.number().int().describe(
|
|
671
|
+
"The duration (in hours) a card can remain in this stage before becoming stale.\nWhen a card exceeds this duration, it's marked as stale to indicate potential workflow delays."
|
|
672
|
+
).min(1).max(1e5).optional().nullable()
|
|
673
|
+
})
|
|
674
|
+
).min(1).max(30).optional(),
|
|
675
|
+
doneStage: z.object({
|
|
676
|
+
_id: z.string().describe("Done stage ID.").regex(
|
|
677
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
678
|
+
"Must be a valid GUID"
|
|
679
|
+
).optional().nullable(),
|
|
680
|
+
name: z.string().describe("Done stage name.").min(1).max(40).optional().nullable(),
|
|
681
|
+
allowedOutcomes: z.array(z.enum(["NONE", "WON", "LOST"])).min(1).max(3).optional()
|
|
682
|
+
}).describe(
|
|
683
|
+
"The final pipeline stage where cards receive a final outcome."
|
|
684
|
+
).optional(),
|
|
685
|
+
extendedFields: z.object({
|
|
686
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
687
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
688
|
+
).optional()
|
|
689
|
+
}).describe("Extended fields data.").optional(),
|
|
690
|
+
tags: z.object({
|
|
691
|
+
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
692
|
+
"Tags that are exposed to anyone with access to the entity, including site members and visitors."
|
|
693
|
+
).optional()
|
|
694
|
+
}).describe("Tags for organizing and categorizing pipelines.").optional()
|
|
695
|
+
})
|
|
696
|
+
).optional(),
|
|
697
|
+
pagingMetadata: z.object({
|
|
698
|
+
count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
|
|
699
|
+
cursors: z.object({
|
|
700
|
+
next: z.string().describe(
|
|
701
|
+
"Cursor string pointing to the next page in the list of results."
|
|
702
|
+
).max(16e3).optional().nullable(),
|
|
703
|
+
prev: z.string().describe(
|
|
704
|
+
"Cursor pointing to the previous page in the list of results."
|
|
705
|
+
).max(16e3).optional().nullable()
|
|
706
|
+
}).describe(
|
|
707
|
+
"Cursor strings that point to the next page, previous page, or both."
|
|
708
|
+
).optional(),
|
|
709
|
+
hasNext: z.boolean().describe(
|
|
710
|
+
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
711
|
+
).optional().nullable()
|
|
712
|
+
}).describe("Paging metadata.").optional()
|
|
713
|
+
});
|
|
714
|
+
var BulkUpdatePipelineTagsRequest = z.object({
|
|
715
|
+
pipelineIds: z.array(z.string()).min(1).max(100),
|
|
716
|
+
options: z.object({
|
|
717
|
+
assignTags: z.object({
|
|
718
|
+
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
719
|
+
"Tags that are exposed to anyone with access to the entity, including site members and visitors."
|
|
720
|
+
).optional()
|
|
721
|
+
}).describe("List of tags to assign.").optional(),
|
|
722
|
+
unassignTags: z.object({
|
|
723
|
+
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
724
|
+
"Tags that are exposed to anyone with access to the entity, including site members and visitors."
|
|
725
|
+
).optional()
|
|
726
|
+
}).describe("List of tags to unassign.").optional(),
|
|
727
|
+
returnEntity: z.boolean().describe(
|
|
728
|
+
"Whether to return the updated pipelines in the response.\n\nDefault: `false`"
|
|
729
|
+
).optional()
|
|
730
|
+
}).optional()
|
|
731
|
+
});
|
|
732
|
+
var BulkUpdatePipelineTagsResponse = z.object({
|
|
733
|
+
results: z.array(
|
|
734
|
+
z.object({
|
|
735
|
+
itemMetadata: z.object({
|
|
736
|
+
_id: z.string().describe(
|
|
737
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
738
|
+
).regex(
|
|
739
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
740
|
+
"Must be a valid GUID"
|
|
741
|
+
).optional().nullable(),
|
|
742
|
+
originalIndex: z.number().int().describe(
|
|
743
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
744
|
+
).optional(),
|
|
745
|
+
success: z.boolean().describe(
|
|
746
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
747
|
+
).optional(),
|
|
748
|
+
error: z.object({
|
|
749
|
+
code: z.string().describe("Error code.").optional(),
|
|
750
|
+
description: z.string().describe("Description of the error.").optional(),
|
|
751
|
+
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
752
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
753
|
+
}).describe("Metadata about the individual updated pipeline.").optional()
|
|
754
|
+
})
|
|
755
|
+
).min(1).max(100).optional(),
|
|
756
|
+
bulkActionMetadata: z.object({
|
|
757
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
758
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
759
|
+
undetailedFailures: z.number().int().describe(
|
|
760
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
761
|
+
).optional()
|
|
762
|
+
}).describe("Metadata about the bulk update.").optional()
|
|
763
|
+
});
|
|
764
|
+
var BulkUpdatePipelineTagsByFilterRequest = z.object({
|
|
765
|
+
filter: z.record(z.string(), z.any()).describe("Filter to select which pipelines to update."),
|
|
766
|
+
options: z.object({
|
|
767
|
+
assignTags: z.object({
|
|
768
|
+
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
769
|
+
"Tags that are exposed to anyone with access to the entity, including site members and visitors."
|
|
770
|
+
).optional()
|
|
771
|
+
}).describe("List of tags to assign.").optional(),
|
|
772
|
+
unassignTags: z.object({
|
|
773
|
+
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
774
|
+
"Tags that are exposed to anyone with access to the entity, including site members and visitors."
|
|
775
|
+
).optional()
|
|
776
|
+
}).describe("List of tags to unassign.").optional(),
|
|
777
|
+
returnEntity: z.boolean().describe(
|
|
778
|
+
"Whether to return the updated pipelines in the response.\n\nDefault: `false`"
|
|
779
|
+
).optional()
|
|
780
|
+
}).optional()
|
|
781
|
+
});
|
|
782
|
+
var BulkUpdatePipelineTagsByFilterResponse = z.object({
|
|
783
|
+
jobId: z.string().describe("Job ID for tracking the asynchronous tag updates.").regex(
|
|
784
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
785
|
+
"Must be a valid GUID"
|
|
786
|
+
).optional()
|
|
787
|
+
});
|
|
788
|
+
|
|
789
|
+
// src/crm-pipelines-v1-pipeline-pipelines.universal.ts
|
|
331
790
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
332
791
|
var Outcome = /* @__PURE__ */ ((Outcome2) => {
|
|
333
792
|
Outcome2["NONE"] = "NONE";
|
|
@@ -335,6 +794,11 @@ var Outcome = /* @__PURE__ */ ((Outcome2) => {
|
|
|
335
794
|
Outcome2["LOST"] = "LOST";
|
|
336
795
|
return Outcome2;
|
|
337
796
|
})(Outcome || {});
|
|
797
|
+
var PipelineType = /* @__PURE__ */ ((PipelineType2) => {
|
|
798
|
+
PipelineType2["GENERIC"] = "GENERIC";
|
|
799
|
+
PipelineType2["LEAD"] = "LEAD";
|
|
800
|
+
return PipelineType2;
|
|
801
|
+
})(PipelineType || {});
|
|
338
802
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
339
803
|
SortOrder2["ASC"] = "ASC";
|
|
340
804
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -349,7 +813,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
349
813
|
return WebhookIdentityType2;
|
|
350
814
|
})(WebhookIdentityType || {});
|
|
351
815
|
async function createPipeline2(pipeline) {
|
|
352
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
816
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
|
|
817
|
+
if (validateRequestSchema) {
|
|
818
|
+
CreatePipelineRequest.parse({ pipeline });
|
|
819
|
+
}
|
|
353
820
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ pipeline });
|
|
354
821
|
const reqOpts = createPipeline(payload);
|
|
355
822
|
sideEffects?.onSiteCall?.();
|
|
@@ -372,7 +839,10 @@ async function createPipeline2(pipeline) {
|
|
|
372
839
|
}
|
|
373
840
|
}
|
|
374
841
|
async function getPipeline2(pipelineId) {
|
|
375
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
842
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
|
|
843
|
+
if (validateRequestSchema) {
|
|
844
|
+
GetPipelineRequest.parse({ pipelineId });
|
|
845
|
+
}
|
|
376
846
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
377
847
|
pipelineId
|
|
378
848
|
});
|
|
@@ -397,7 +867,10 @@ async function getPipeline2(pipelineId) {
|
|
|
397
867
|
}
|
|
398
868
|
}
|
|
399
869
|
async function updatePipeline2(_id, pipeline) {
|
|
400
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
870
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
|
|
871
|
+
if (validateRequestSchema) {
|
|
872
|
+
UpdatePipelineRequest.parse({ _id, pipeline });
|
|
873
|
+
}
|
|
401
874
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
402
875
|
pipeline: { ...pipeline, id: _id }
|
|
403
876
|
});
|
|
@@ -422,7 +895,10 @@ async function updatePipeline2(_id, pipeline) {
|
|
|
422
895
|
}
|
|
423
896
|
}
|
|
424
897
|
async function deletePipeline2(pipelineId) {
|
|
425
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
898
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
|
|
899
|
+
if (validateRequestSchema) {
|
|
900
|
+
DeletePipelineRequest.parse({ pipelineId });
|
|
901
|
+
}
|
|
426
902
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
427
903
|
pipelineId
|
|
428
904
|
});
|
|
@@ -490,7 +966,10 @@ function queryPipelines2() {
|
|
|
490
966
|
});
|
|
491
967
|
}
|
|
492
968
|
async function typedQueryPipelines(query) {
|
|
493
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
969
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
|
|
970
|
+
if (validateRequestSchema) {
|
|
971
|
+
QueryPipelinesRequest.parse({ query });
|
|
972
|
+
}
|
|
494
973
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
495
974
|
const reqOpts = queryPipelines(payload);
|
|
496
975
|
sideEffects?.onSiteCall?.();
|
|
@@ -518,7 +997,10 @@ var utils = {
|
|
|
518
997
|
}
|
|
519
998
|
};
|
|
520
999
|
async function bulkUpdatePipelineTags2(pipelineIds, options) {
|
|
521
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1000
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
|
|
1001
|
+
if (validateRequestSchema) {
|
|
1002
|
+
BulkUpdatePipelineTagsRequest.parse({ pipelineIds, options });
|
|
1003
|
+
}
|
|
522
1004
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
523
1005
|
pipelineIds,
|
|
524
1006
|
assignTags: options?.assignTags,
|
|
@@ -551,7 +1033,10 @@ async function bulkUpdatePipelineTags2(pipelineIds, options) {
|
|
|
551
1033
|
}
|
|
552
1034
|
}
|
|
553
1035
|
async function bulkUpdatePipelineTagsByFilter2(filter, options) {
|
|
554
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1036
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
|
|
1037
|
+
if (validateRequestSchema) {
|
|
1038
|
+
BulkUpdatePipelineTagsByFilterRequest.parse({ filter, options });
|
|
1039
|
+
}
|
|
555
1040
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
556
1041
|
filter,
|
|
557
1042
|
assignTags: options?.assignTags,
|
|
@@ -585,62 +1070,62 @@ async function bulkUpdatePipelineTagsByFilter2(filter, options) {
|
|
|
585
1070
|
}
|
|
586
1071
|
|
|
587
1072
|
// src/crm-pipelines-v1-pipeline-pipelines.public.ts
|
|
588
|
-
function createPipeline3(httpClient) {
|
|
1073
|
+
function createPipeline3(httpClient, __options) {
|
|
589
1074
|
return (pipeline) => createPipeline2(
|
|
590
1075
|
pipeline,
|
|
591
1076
|
// @ts-ignore
|
|
592
|
-
{ httpClient }
|
|
1077
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
593
1078
|
);
|
|
594
1079
|
}
|
|
595
|
-
function getPipeline3(httpClient) {
|
|
1080
|
+
function getPipeline3(httpClient, __options) {
|
|
596
1081
|
return (pipelineId) => getPipeline2(
|
|
597
1082
|
pipelineId,
|
|
598
1083
|
// @ts-ignore
|
|
599
|
-
{ httpClient }
|
|
1084
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
600
1085
|
);
|
|
601
1086
|
}
|
|
602
|
-
function updatePipeline3(httpClient) {
|
|
1087
|
+
function updatePipeline3(httpClient, __options) {
|
|
603
1088
|
return (_id, pipeline) => updatePipeline2(
|
|
604
1089
|
_id,
|
|
605
1090
|
pipeline,
|
|
606
1091
|
// @ts-ignore
|
|
607
|
-
{ httpClient }
|
|
1092
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
608
1093
|
);
|
|
609
1094
|
}
|
|
610
|
-
function deletePipeline3(httpClient) {
|
|
1095
|
+
function deletePipeline3(httpClient, __options) {
|
|
611
1096
|
return (pipelineId) => deletePipeline2(
|
|
612
1097
|
pipelineId,
|
|
613
1098
|
// @ts-ignore
|
|
614
|
-
{ httpClient }
|
|
1099
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
615
1100
|
);
|
|
616
1101
|
}
|
|
617
|
-
function queryPipelines3(httpClient) {
|
|
1102
|
+
function queryPipelines3(httpClient, __options) {
|
|
618
1103
|
return () => queryPipelines2(
|
|
619
1104
|
// @ts-ignore
|
|
620
|
-
{ httpClient }
|
|
1105
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
621
1106
|
);
|
|
622
1107
|
}
|
|
623
|
-
function typedQueryPipelines2(httpClient) {
|
|
1108
|
+
function typedQueryPipelines2(httpClient, __options) {
|
|
624
1109
|
return (query) => typedQueryPipelines(
|
|
625
1110
|
query,
|
|
626
1111
|
// @ts-ignore
|
|
627
|
-
{ httpClient }
|
|
1112
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
628
1113
|
);
|
|
629
1114
|
}
|
|
630
|
-
function bulkUpdatePipelineTags3(httpClient) {
|
|
1115
|
+
function bulkUpdatePipelineTags3(httpClient, __options) {
|
|
631
1116
|
return (pipelineIds, options) => bulkUpdatePipelineTags2(
|
|
632
1117
|
pipelineIds,
|
|
633
1118
|
options,
|
|
634
1119
|
// @ts-ignore
|
|
635
|
-
{ httpClient }
|
|
1120
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
636
1121
|
);
|
|
637
1122
|
}
|
|
638
|
-
function bulkUpdatePipelineTagsByFilter3(httpClient) {
|
|
1123
|
+
function bulkUpdatePipelineTagsByFilter3(httpClient, __options) {
|
|
639
1124
|
return (filter, options) => bulkUpdatePipelineTagsByFilter2(
|
|
640
1125
|
filter,
|
|
641
1126
|
options,
|
|
642
1127
|
// @ts-ignore
|
|
643
|
-
{ httpClient }
|
|
1128
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
644
1129
|
);
|
|
645
1130
|
}
|
|
646
1131
|
var onPipelineCreated = (0, import_sdk_types.EventDefinition)(
|
|
@@ -722,6 +1207,7 @@ var onPipelineUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
|
722
1207
|
// Annotate the CommonJS export names for ESM import in node:
|
|
723
1208
|
0 && (module.exports = {
|
|
724
1209
|
Outcome,
|
|
1210
|
+
PipelineType,
|
|
725
1211
|
SortOrder,
|
|
726
1212
|
WebhookIdentityType,
|
|
727
1213
|
bulkUpdatePipelineTags,
|