@wix/auto_sdk_crm_pipelines 1.0.0 → 1.0.1

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 (41) hide show
  1. package/build/cjs/index.d.ts +76 -130
  2. package/build/cjs/index.js +194 -977
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +998 -15
  5. package/build/cjs/index.typings.js +146 -767
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +133 -1005
  8. package/build/cjs/meta.js +128 -682
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +76 -130
  11. package/build/es/index.mjs +184 -947
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +998 -15
  14. package/build/es/index.typings.mjs +138 -743
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +133 -1005
  17. package/build/es/meta.mjs +121 -659
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +76 -163
  20. package/build/internal/cjs/index.js +194 -977
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +998 -15
  23. package/build/internal/cjs/index.typings.js +146 -767
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +133 -1005
  26. package/build/internal/cjs/meta.js +128 -682
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +76 -163
  29. package/build/internal/es/index.mjs +184 -947
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +998 -15
  32. package/build/internal/es/index.typings.mjs +138 -743
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +133 -1005
  35. package/build/internal/es/meta.mjs +121 -659
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
  38. package/build/cjs/crm-pipelines-v1-card-pipelines.universal-DGtqU_Zb.d.ts +0 -2265
  39. package/build/es/crm-pipelines-v1-card-pipelines.universal-DGtqU_Zb.d.mts +0 -2265
  40. package/build/internal/cjs/crm-pipelines-v1-card-pipelines.universal-BHszxzqA.d.ts +0 -2303
  41. package/build/internal/es/crm-pipelines-v1-card-pipelines.universal-BHszxzqA.d.mts +0 -2303
@@ -20,142 +20,116 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
- AggregationType: () => AggregationType,
24
- Interval: () => Interval,
25
- MissingValues: () => MissingValues,
26
- Mode: () => Mode,
27
- NameFormat: () => NameFormat,
28
- NestedAggregationType: () => NestedAggregationType,
29
23
  Outcome: () => Outcome,
30
- Priority: () => Priority,
31
- ScalarType: () => ScalarType,
32
- SortDirection: () => SortDirection,
33
24
  SortOrder: () => SortOrder,
34
- SortType: () => SortType,
35
25
  WebhookIdentityType: () => WebhookIdentityType,
36
- bulkCreateCards: () => bulkCreateCards4,
37
- bulkDeleteCards: () => bulkDeleteCards4,
38
- bulkUpdateCardTags: () => bulkUpdateCardTags4,
39
- bulkUpdateCardTagsByFilter: () => bulkUpdateCardTagsByFilter4,
40
- bulkUpdateCards: () => bulkUpdateCards4,
41
- createCard: () => createCard4,
42
- deleteCard: () => deleteCard4,
43
- getCard: () => getCard4,
44
- moveCard: () => moveCard4,
45
- onCardAssigned: () => onCardAssigned2,
46
- onCardCreated: () => onCardCreated2,
47
- onCardDeleted: () => onCardDeleted2,
48
- onCardMoved: () => onCardMoved2,
49
- onCardOverdue: () => onCardOverdue2,
50
- onCardStale: () => onCardStale2,
51
- onCardUpdated: () => onCardUpdated2,
52
- queryCards: () => queryCards4,
53
- searchCards: () => searchCards4,
54
- searchCardsByStage: () => searchCardsByStage4,
55
- updateCard: () => updateCard4,
26
+ bulkUpdatePipelineTags: () => bulkUpdatePipelineTags4,
27
+ bulkUpdatePipelineTagsByFilter: () => bulkUpdatePipelineTagsByFilter4,
28
+ createPipeline: () => createPipeline4,
29
+ deletePipeline: () => deletePipeline4,
30
+ getPipeline: () => getPipeline4,
31
+ onPipelineCreated: () => onPipelineCreated2,
32
+ onPipelineDeleted: () => onPipelineDeleted2,
33
+ onPipelineUpdated: () => onPipelineUpdated2,
34
+ queryPipelines: () => queryPipelines4,
35
+ updatePipeline: () => updatePipeline4,
56
36
  utils: () => utils
57
37
  });
58
38
  module.exports = __toCommonJS(index_exports);
59
39
 
60
- // src/crm-pipelines-v1-card-pipelines.public.ts
40
+ // src/crm-pipelines-v1-pipeline-pipelines.public.ts
61
41
  var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
62
42
  var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
63
43
  var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
64
44
  var import_sdk_types = require("@wix/sdk-types");
65
45
 
66
- // src/crm-pipelines-v1-card-pipelines.universal.ts
46
+ // src/crm-pipelines-v1-pipeline-pipelines.universal.ts
67
47
  var import_transform_error = require("@wix/sdk-runtime/transform-error");
68
48
  var import_query_builder = require("@wix/sdk-runtime/query-builder");
69
49
  var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
70
50
 
71
- // src/crm-pipelines-v1-card-pipelines.http.ts
51
+ // src/crm-pipelines-v1-pipeline-pipelines.http.ts
72
52
  var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
73
- var import_float = require("@wix/sdk-runtime/transformations/float");
74
- var import_float2 = require("@wix/sdk-runtime/transformations/float");
75
53
  var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
76
54
  var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
77
55
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
78
56
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
79
57
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
80
- function resolveWixCrmPipelinesCardsV1CardsUrl(opts) {
58
+ function resolveWixCrmPipelinesPipelinesV1PipelinesUrl(opts) {
81
59
  const domainToMappings = {
82
60
  "manage._base_domain_": [
83
61
  {
84
- srcPath: "/_api/cards-app/v1/cards",
85
- destPath: "/v1/cards"
62
+ srcPath: "/_api/pipelines-app/v1/pipelines",
63
+ destPath: "/v1/pipelines"
86
64
  },
87
65
  {
88
- srcPath: "/_api/cards-app/v1/bulk/cards",
89
- destPath: "/v1/bulk/cards"
66
+ srcPath: "/_api/pipelines-app/v1/bulk/pipelines/",
67
+ destPath: "/v1/bulk/pipelines/"
90
68
  },
91
69
  {
92
- srcPath: "/_api/cards/v1/cards",
93
- destPath: "/v1/cards"
70
+ srcPath: "/_api/pipelines/v1/pipelines",
71
+ destPath: "/v1/pipelines"
94
72
  },
95
73
  {
96
- srcPath: "/_api/cards/v1/bulk/cards",
97
- destPath: "/v1/bulk/cards"
74
+ srcPath: "/_api/pipelines/v1/bulk/pipelines",
75
+ destPath: "/v1/bulk/pipelines"
98
76
  }
99
77
  ],
100
78
  _: [
101
79
  {
102
- srcPath: "/_api/cards/v1/cards",
103
- destPath: "/v1/cards"
80
+ srcPath: "/_api/pipelines/v1/pipelines",
81
+ destPath: "/v1/pipelines"
104
82
  },
105
83
  {
106
- srcPath: "/_api/cards/v1/bulk/cards",
107
- destPath: "/v1/bulk/cards"
84
+ srcPath: "/_api/pipelines/v1/bulk/pipelines",
85
+ destPath: "/v1/bulk/pipelines"
108
86
  }
109
87
  ],
110
88
  "*.dev.wix-code.com": [
111
89
  {
112
- srcPath: "/_api/cards/v1/cards",
113
- destPath: "/v1/cards"
90
+ srcPath: "/_api/pipelines/v1/pipelines",
91
+ destPath: "/v1/pipelines"
114
92
  },
115
93
  {
116
- srcPath: "/_api/cards/v1/bulk/cards",
117
- destPath: "/v1/bulk/cards"
94
+ srcPath: "/_api/pipelines/v1/bulk/pipelines",
95
+ destPath: "/v1/bulk/pipelines"
118
96
  }
119
97
  ],
120
98
  "www.wixapis.com": [
121
99
  {
122
- srcPath: "/crm/pipelines/v1/cards",
123
- destPath: "/v1/cards"
100
+ srcPath: "/crm/pipelines/v1/pipelines",
101
+ destPath: "/v1/pipelines"
124
102
  },
125
103
  {
126
- srcPath: "/crm/pipelines/v1/bulk/cards",
127
- destPath: "/v1/bulk/cards"
104
+ srcPath: "/crm/pipelines/v1/bulk/pipelines",
105
+ destPath: "/v1/bulk/pipelines"
128
106
  }
129
107
  ]
130
108
  };
131
109
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
132
110
  }
133
111
  var PACKAGE_NAME = "@wix/auto_sdk_crm_pipelines";
134
- function createCard(payload) {
135
- function __createCard({ host }) {
112
+ function createPipeline(payload) {
113
+ function __createPipeline({ host }) {
136
114
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
137
115
  {
138
116
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
139
117
  paths: [
140
- { path: "card.createdDate" },
141
- { path: "card.updatedDate" },
142
- { path: "card.stageUpdatedDate" },
143
- { path: "card.dueDate" },
144
- { path: "card.staleDate" },
145
- { path: "card.linkedEntities.linkedDate" }
118
+ { path: "pipeline.createdDate" },
119
+ { path: "pipeline.updatedDate" }
146
120
  ]
147
121
  }
148
122
  ]);
149
123
  const metadata = {
150
- entityFqdn: "wix.crm.pipelines.v1.card",
124
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
151
125
  method: "POST",
152
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.CreateCard",
126
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.CreatePipeline",
153
127
  packageName: PACKAGE_NAME,
154
128
  migrationOptions: {
155
129
  optInTransformResponse: true
156
130
  },
157
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
158
- protoPath: "/v1/cards",
131
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
132
+ protoPath: "/v1/pipelines",
159
133
  data: serializedData,
160
134
  host
161
135
  }),
@@ -164,32 +138,28 @@ function createCard(payload) {
164
138
  {
165
139
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
166
140
  paths: [
167
- { path: "card.createdDate" },
168
- { path: "card.updatedDate" },
169
- { path: "card.stageUpdatedDate" },
170
- { path: "card.dueDate" },
171
- { path: "card.staleDate" },
172
- { path: "card.linkedEntities.linkedDate" }
141
+ { path: "pipeline.createdDate" },
142
+ { path: "pipeline.updatedDate" }
173
143
  ]
174
144
  }
175
145
  ])
176
146
  };
177
147
  return metadata;
178
148
  }
179
- return __createCard;
149
+ return __createPipeline;
180
150
  }
181
- function getCard(payload) {
182
- function __getCard({ host }) {
151
+ function getPipeline(payload) {
152
+ function __getPipeline({ host }) {
183
153
  const metadata = {
184
- entityFqdn: "wix.crm.pipelines.v1.card",
154
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
185
155
  method: "GET",
186
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.GetCard",
156
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.GetPipeline",
187
157
  packageName: PACKAGE_NAME,
188
158
  migrationOptions: {
189
159
  optInTransformResponse: true
190
160
  },
191
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
192
- protoPath: "/v1/cards/{cardId}",
161
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
162
+ protoPath: "/v1/pipelines/{pipelineId}",
193
163
  data: payload,
194
164
  host
195
165
  }),
@@ -198,22 +168,18 @@ function getCard(payload) {
198
168
  {
199
169
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
200
170
  paths: [
201
- { path: "card.createdDate" },
202
- { path: "card.updatedDate" },
203
- { path: "card.stageUpdatedDate" },
204
- { path: "card.dueDate" },
205
- { path: "card.staleDate" },
206
- { path: "card.linkedEntities.linkedDate" }
171
+ { path: "pipeline.createdDate" },
172
+ { path: "pipeline.updatedDate" }
207
173
  ]
208
174
  }
209
175
  ])
210
176
  };
211
177
  return metadata;
212
178
  }
213
- return __getCard;
179
+ return __getPipeline;
214
180
  }
215
- function updateCard(payload) {
216
- function __updateCard({ host }) {
181
+ function updatePipeline(payload) {
182
+ function __updatePipeline({ host }) {
217
183
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
218
184
  {
219
185
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
@@ -222,25 +188,21 @@ function updateCard(payload) {
222
188
  {
223
189
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
224
190
  paths: [
225
- { path: "card.createdDate" },
226
- { path: "card.updatedDate" },
227
- { path: "card.stageUpdatedDate" },
228
- { path: "card.dueDate" },
229
- { path: "card.staleDate" },
230
- { path: "card.linkedEntities.linkedDate" }
191
+ { path: "pipeline.createdDate" },
192
+ { path: "pipeline.updatedDate" }
231
193
  ]
232
194
  }
233
195
  ]);
234
196
  const metadata = {
235
- entityFqdn: "wix.crm.pipelines.v1.card",
197
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
236
198
  method: "PATCH",
237
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.UpdateCard",
199
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.UpdatePipeline",
238
200
  packageName: PACKAGE_NAME,
239
201
  migrationOptions: {
240
202
  optInTransformResponse: true
241
203
  },
242
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
243
- protoPath: "/v1/cards/{card.id}",
204
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
205
+ protoPath: "/v1/pipelines/{pipeline.id}",
244
206
  data: serializedData,
245
207
  host
246
208
  }),
@@ -249,66 +211,28 @@ function updateCard(payload) {
249
211
  {
250
212
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
251
213
  paths: [
252
- { path: "card.createdDate" },
253
- { path: "card.updatedDate" },
254
- { path: "card.stageUpdatedDate" },
255
- { path: "card.dueDate" },
256
- { path: "card.staleDate" },
257
- { path: "card.linkedEntities.linkedDate" }
214
+ { path: "pipeline.createdDate" },
215
+ { path: "pipeline.updatedDate" }
258
216
  ]
259
217
  }
260
218
  ])
261
219
  };
262
220
  return metadata;
263
221
  }
264
- return __updateCard;
222
+ return __updatePipeline;
265
223
  }
266
- function moveCard(payload) {
267
- function __moveCard({ host }) {
224
+ function deletePipeline(payload) {
225
+ function __deletePipeline({ host }) {
268
226
  const metadata = {
269
- entityFqdn: "wix.crm.pipelines.v1.card",
270
- method: "PATCH",
271
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.MoveCard",
272
- packageName: PACKAGE_NAME,
273
- migrationOptions: {
274
- optInTransformResponse: true
275
- },
276
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
277
- protoPath: "/v1/cards/move/{cardId}",
278
- data: payload,
279
- host
280
- }),
281
- data: payload,
282
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
283
- {
284
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
285
- paths: [
286
- { path: "card.createdDate" },
287
- { path: "card.updatedDate" },
288
- { path: "card.stageUpdatedDate" },
289
- { path: "card.dueDate" },
290
- { path: "card.staleDate" },
291
- { path: "card.linkedEntities.linkedDate" }
292
- ]
293
- }
294
- ])
295
- };
296
- return metadata;
297
- }
298
- return __moveCard;
299
- }
300
- function deleteCard(payload) {
301
- function __deleteCard({ host }) {
302
- const metadata = {
303
- entityFqdn: "wix.crm.pipelines.v1.card",
227
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
304
228
  method: "DELETE",
305
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.DeleteCard",
229
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.DeletePipeline",
306
230
  packageName: PACKAGE_NAME,
307
231
  migrationOptions: {
308
232
  optInTransformResponse: true
309
233
  },
310
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
311
- protoPath: "/v1/cards/{cardId}",
234
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
235
+ protoPath: "/v1/pipelines/{pipelineId}",
312
236
  data: payload,
313
237
  host
314
238
  }),
@@ -316,20 +240,20 @@ function deleteCard(payload) {
316
240
  };
317
241
  return metadata;
318
242
  }
319
- return __deleteCard;
243
+ return __deletePipeline;
320
244
  }
321
- function queryCards(payload) {
322
- function __queryCards({ host }) {
245
+ function queryPipelines(payload) {
246
+ function __queryPipelines({ host }) {
323
247
  const metadata = {
324
- entityFqdn: "wix.crm.pipelines.v1.card",
248
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
325
249
  method: "GET",
326
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.QueryCards",
250
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.QueryPipelines",
327
251
  packageName: PACKAGE_NAME,
328
252
  migrationOptions: {
329
253
  optInTransformResponse: true
330
254
  },
331
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
332
- protoPath: "/v1/cards/query",
255
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
256
+ protoPath: "/v1/pipelines/query",
333
257
  data: payload,
334
258
  host
335
259
  }),
@@ -338,20 +262,16 @@ function queryCards(payload) {
338
262
  {
339
263
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
340
264
  paths: [
341
- { path: "cards.createdDate" },
342
- { path: "cards.updatedDate" },
343
- { path: "cards.stageUpdatedDate" },
344
- { path: "cards.dueDate" },
345
- { path: "cards.staleDate" },
346
- { path: "cards.linkedEntities.linkedDate" }
265
+ { path: "pipelines.createdDate" },
266
+ { path: "pipelines.updatedDate" }
347
267
  ]
348
268
  }
349
269
  ]),
350
270
  fallback: [
351
271
  {
352
272
  method: "POST",
353
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
354
- protoPath: "/v1/cards/query",
273
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
274
+ protoPath: "/v1/pipelines/query",
355
275
  data: payload,
356
276
  host
357
277
  }),
@@ -361,311 +281,20 @@ function queryCards(payload) {
361
281
  };
362
282
  return metadata;
363
283
  }
364
- return __queryCards;
365
- }
366
- function searchCards(payload) {
367
- function __searchCards({ host }) {
368
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
369
- {
370
- transformFn: import_float.transformSDKFloatToRESTFloat,
371
- paths: [
372
- { path: "search.aggregations.range.buckets.from" },
373
- { path: "search.aggregations.range.buckets.to" },
374
- {
375
- path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
376
- },
377
- {
378
- path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
379
- }
380
- ]
381
- }
382
- ]);
383
- const metadata = {
384
- entityFqdn: "wix.crm.pipelines.v1.card",
385
- method: "GET",
386
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.SearchCards",
387
- packageName: PACKAGE_NAME,
388
- migrationOptions: {
389
- optInTransformResponse: true
390
- },
391
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
392
- protoPath: "/v1/cards/search",
393
- data: serializedData,
394
- host
395
- }),
396
- params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
397
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
398
- {
399
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
400
- paths: [
401
- { path: "cards.createdDate" },
402
- { path: "cards.updatedDate" },
403
- { path: "cards.stageUpdatedDate" },
404
- { path: "cards.dueDate" },
405
- { path: "cards.staleDate" },
406
- { path: "cards.linkedEntities.linkedDate" }
407
- ]
408
- },
409
- {
410
- transformFn: import_float2.transformRESTFloatToSDKFloat,
411
- paths: [
412
- { path: "aggregationData.results.ranges.results.from" },
413
- { path: "aggregationData.results.ranges.results.to" },
414
- {
415
- path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
416
- },
417
- {
418
- path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
419
- },
420
- {
421
- path: "aggregationData.results.nested.results.results.*.range.from"
422
- },
423
- {
424
- path: "aggregationData.results.nested.results.results.*.range.to"
425
- },
426
- { path: "aggregationData.results.scalar.value" },
427
- {
428
- path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
429
- },
430
- {
431
- path: "aggregationData.results.nested.results.results.*.scalar.value"
432
- }
433
- ]
434
- }
435
- ]),
436
- fallback: [
437
- {
438
- method: "POST",
439
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
440
- protoPath: "/v1/cards/search",
441
- data: serializedData,
442
- host
443
- }),
444
- data: serializedData
445
- }
446
- ]
447
- };
448
- return metadata;
449
- }
450
- return __searchCards;
451
- }
452
- function searchCardsByStage(payload) {
453
- function __searchCardsByStage({ host }) {
454
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
455
- {
456
- transformFn: import_float.transformSDKFloatToRESTFloat,
457
- paths: [
458
- { path: "search.aggregations.range.buckets.from" },
459
- { path: "search.aggregations.range.buckets.to" },
460
- {
461
- path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
462
- },
463
- {
464
- path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
465
- }
466
- ]
467
- }
468
- ]);
469
- const metadata = {
470
- entityFqdn: "wix.crm.pipelines.v1.card",
471
- method: "GET",
472
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.SearchCardsByStage",
473
- packageName: PACKAGE_NAME,
474
- migrationOptions: {
475
- optInTransformResponse: true
476
- },
477
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
478
- protoPath: "/v1/cards/search-by-stage",
479
- data: serializedData,
480
- host
481
- }),
482
- params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
483
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
484
- {
485
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
486
- paths: [
487
- { path: "results.cards.createdDate" },
488
- { path: "results.cards.updatedDate" },
489
- { path: "results.cards.stageUpdatedDate" },
490
- { path: "results.cards.dueDate" },
491
- { path: "results.cards.staleDate" },
492
- { path: "results.cards.linkedEntities.linkedDate" }
493
- ]
494
- },
495
- {
496
- transformFn: import_float2.transformRESTFloatToSDKFloat,
497
- paths: [
498
- { path: "results.aggregationData.results.ranges.results.from" },
499
- { path: "results.aggregationData.results.ranges.results.to" },
500
- {
501
- path: "results.aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
502
- },
503
- {
504
- path: "results.aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
505
- },
506
- {
507
- path: "results.aggregationData.results.nested.results.results.*.range.from"
508
- },
509
- {
510
- path: "results.aggregationData.results.nested.results.results.*.range.to"
511
- },
512
- { path: "results.aggregationData.results.scalar.value" },
513
- {
514
- path: "results.aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
515
- },
516
- {
517
- path: "results.aggregationData.results.nested.results.results.*.scalar.value"
518
- }
519
- ]
520
- }
521
- ]),
522
- fallback: [
523
- {
524
- method: "POST",
525
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
526
- protoPath: "/v1/cards/search-by-stage",
527
- data: serializedData,
528
- host
529
- }),
530
- data: serializedData
531
- }
532
- ]
533
- };
534
- return metadata;
535
- }
536
- return __searchCardsByStage;
537
- }
538
- function bulkCreateCards(payload) {
539
- function __bulkCreateCards({ host }) {
540
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
541
- {
542
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
543
- paths: [
544
- { path: "cards.createdDate" },
545
- { path: "cards.updatedDate" },
546
- { path: "cards.stageUpdatedDate" },
547
- { path: "cards.dueDate" },
548
- { path: "cards.staleDate" },
549
- { path: "cards.linkedEntities.linkedDate" }
550
- ]
551
- }
552
- ]);
553
- const metadata = {
554
- entityFqdn: "wix.crm.pipelines.v1.card",
555
- method: "POST",
556
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkCreateCards",
557
- packageName: PACKAGE_NAME,
558
- migrationOptions: {
559
- optInTransformResponse: true
560
- },
561
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
562
- protoPath: "/v1/bulk/cards/create",
563
- data: serializedData,
564
- host
565
- }),
566
- data: serializedData,
567
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
568
- {
569
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
570
- paths: [
571
- { path: "results.item.createdDate" },
572
- { path: "results.item.updatedDate" },
573
- { path: "results.item.stageUpdatedDate" },
574
- { path: "results.item.dueDate" },
575
- { path: "results.item.staleDate" },
576
- { path: "results.item.linkedEntities.linkedDate" }
577
- ]
578
- }
579
- ])
580
- };
581
- return metadata;
582
- }
583
- return __bulkCreateCards;
284
+ return __queryPipelines;
584
285
  }
585
- function bulkUpdateCards(payload) {
586
- function __bulkUpdateCards({ host }) {
587
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
588
- {
589
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
590
- paths: [{ path: "cards.fieldMask" }]
591
- },
592
- {
593
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
594
- paths: [
595
- { path: "cards.card.createdDate" },
596
- { path: "cards.card.updatedDate" },
597
- { path: "cards.card.stageUpdatedDate" },
598
- { path: "cards.card.dueDate" },
599
- { path: "cards.card.staleDate" },
600
- { path: "cards.card.linkedEntities.linkedDate" }
601
- ]
602
- }
603
- ]);
286
+ function bulkUpdatePipelineTags(payload) {
287
+ function __bulkUpdatePipelineTags({ host }) {
604
288
  const metadata = {
605
- entityFqdn: "wix.crm.pipelines.v1.card",
289
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
606
290
  method: "POST",
607
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkUpdateCards",
291
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.BulkUpdatePipelineTags",
608
292
  packageName: PACKAGE_NAME,
609
293
  migrationOptions: {
610
294
  optInTransformResponse: true
611
295
  },
612
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
613
- protoPath: "/v1/bulk/cards/update",
614
- data: serializedData,
615
- host
616
- }),
617
- data: serializedData,
618
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
619
- {
620
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
621
- paths: [
622
- { path: "results.item.createdDate" },
623
- { path: "results.item.updatedDate" },
624
- { path: "results.item.stageUpdatedDate" },
625
- { path: "results.item.dueDate" },
626
- { path: "results.item.staleDate" },
627
- { path: "results.item.linkedEntities.linkedDate" }
628
- ]
629
- }
630
- ])
631
- };
632
- return metadata;
633
- }
634
- return __bulkUpdateCards;
635
- }
636
- function bulkDeleteCards(payload) {
637
- function __bulkDeleteCards({ host }) {
638
- const metadata = {
639
- entityFqdn: "wix.crm.pipelines.v1.card",
640
- method: "POST",
641
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkDeleteCards",
642
- packageName: PACKAGE_NAME,
643
- migrationOptions: {
644
- optInTransformResponse: true
645
- },
646
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
647
- protoPath: "/v1/bulk/cards/delete",
648
- data: payload,
649
- host
650
- }),
651
- data: payload
652
- };
653
- return metadata;
654
- }
655
- return __bulkDeleteCards;
656
- }
657
- function bulkUpdateCardTags(payload) {
658
- function __bulkUpdateCardTags({ host }) {
659
- const metadata = {
660
- entityFqdn: "wix.crm.pipelines.v1.card",
661
- method: "POST",
662
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkUpdateCardTags",
663
- packageName: PACKAGE_NAME,
664
- migrationOptions: {
665
- optInTransformResponse: true
666
- },
667
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
668
- protoPath: "/v1/bulk/cards/update-tags",
296
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
297
+ protoPath: "/v1/bulk/pipelines/update-tags",
669
298
  data: payload,
670
299
  host
671
300
  }),
@@ -673,20 +302,20 @@ function bulkUpdateCardTags(payload) {
673
302
  };
674
303
  return metadata;
675
304
  }
676
- return __bulkUpdateCardTags;
305
+ return __bulkUpdatePipelineTags;
677
306
  }
678
- function bulkUpdateCardTagsByFilter(payload) {
679
- function __bulkUpdateCardTagsByFilter({ host }) {
307
+ function bulkUpdatePipelineTagsByFilter(payload) {
308
+ function __bulkUpdatePipelineTagsByFilter({ host }) {
680
309
  const metadata = {
681
- entityFqdn: "wix.crm.pipelines.v1.card",
310
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
682
311
  method: "POST",
683
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkUpdateCardTagsByFilter",
312
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.BulkUpdatePipelineTagsByFilter",
684
313
  packageName: PACKAGE_NAME,
685
314
  migrationOptions: {
686
315
  optInTransformResponse: true
687
316
  },
688
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
689
- protoPath: "/v1/bulk/cards/update-tags-by-filter",
317
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
318
+ protoPath: "/v1/bulk/pipelines/update-tags-by-filter",
690
319
  data: payload,
691
320
  host
692
321
  }),
@@ -694,20 +323,12 @@ function bulkUpdateCardTagsByFilter(payload) {
694
323
  };
695
324
  return metadata;
696
325
  }
697
- return __bulkUpdateCardTagsByFilter;
326
+ return __bulkUpdatePipelineTagsByFilter;
698
327
  }
699
328
 
700
- // src/crm-pipelines-v1-card-pipelines.universal.ts
329
+ // src/crm-pipelines-v1-pipeline-pipelines.universal.ts
701
330
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
702
331
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
703
- var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
704
- var Priority = /* @__PURE__ */ ((Priority2) => {
705
- Priority2["P1_URGENT"] = "P1_URGENT";
706
- Priority2["P2_HIGH"] = "P2_HIGH";
707
- Priority2["P3_MEDIUM"] = "P3_MEDIUM";
708
- Priority2["P4_LOW"] = "P4_LOW";
709
- return Priority2;
710
- })(Priority || {});
711
332
  var Outcome = /* @__PURE__ */ ((Outcome2) => {
712
333
  Outcome2["NONE"] = "NONE";
713
334
  Outcome2["WON"] = "WON";
@@ -719,62 +340,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
719
340
  SortOrder2["DESC"] = "DESC";
720
341
  return SortOrder2;
721
342
  })(SortOrder || {});
722
- var SortType = /* @__PURE__ */ ((SortType2) => {
723
- SortType2["COUNT"] = "COUNT";
724
- SortType2["VALUE"] = "VALUE";
725
- return SortType2;
726
- })(SortType || {});
727
- var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
728
- SortDirection2["DESC"] = "DESC";
729
- SortDirection2["ASC"] = "ASC";
730
- return SortDirection2;
731
- })(SortDirection || {});
732
- var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
733
- MissingValues2["EXCLUDE"] = "EXCLUDE";
734
- MissingValues2["INCLUDE"] = "INCLUDE";
735
- return MissingValues2;
736
- })(MissingValues || {});
737
- var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
738
- ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
739
- ScalarType2["MIN"] = "MIN";
740
- ScalarType2["MAX"] = "MAX";
741
- return ScalarType2;
742
- })(ScalarType || {});
743
- var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
744
- NestedAggregationType2["VALUE"] = "VALUE";
745
- NestedAggregationType2["RANGE"] = "RANGE";
746
- NestedAggregationType2["SCALAR"] = "SCALAR";
747
- NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
748
- return NestedAggregationType2;
749
- })(NestedAggregationType || {});
750
- var Interval = /* @__PURE__ */ ((Interval2) => {
751
- Interval2["YEAR"] = "YEAR";
752
- Interval2["MONTH"] = "MONTH";
753
- Interval2["WEEK"] = "WEEK";
754
- Interval2["DAY"] = "DAY";
755
- Interval2["HOUR"] = "HOUR";
756
- Interval2["MINUTE"] = "MINUTE";
757
- Interval2["SECOND"] = "SECOND";
758
- return Interval2;
759
- })(Interval || {});
760
- var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
761
- AggregationType2["VALUE"] = "VALUE";
762
- AggregationType2["RANGE"] = "RANGE";
763
- AggregationType2["SCALAR"] = "SCALAR";
764
- AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
765
- AggregationType2["NESTED"] = "NESTED";
766
- return AggregationType2;
767
- })(AggregationType || {});
768
- var Mode = /* @__PURE__ */ ((Mode2) => {
769
- Mode2["OR"] = "OR";
770
- Mode2["AND"] = "AND";
771
- return Mode2;
772
- })(Mode || {});
773
- var NameFormat = /* @__PURE__ */ ((NameFormat2) => {
774
- NameFormat2["BY_FIRST_NAME"] = "BY_FIRST_NAME";
775
- NameFormat2["BY_LAST_NAME"] = "BY_LAST_NAME";
776
- return NameFormat2;
777
- })(NameFormat || {});
778
343
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
779
344
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
780
345
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -783,88 +348,85 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
783
348
  WebhookIdentityType2["APP"] = "APP";
784
349
  return WebhookIdentityType2;
785
350
  })(WebhookIdentityType || {});
786
- async function createCard2(options) {
351
+ async function createPipeline2(pipeline) {
787
352
  const { httpClient, sideEffects } = arguments[1];
788
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
789
- card: options?.card
790
- });
791
- const reqOpts = createCard(payload);
353
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ pipeline });
354
+ const reqOpts = createPipeline(payload);
792
355
  sideEffects?.onSiteCall?.();
793
356
  try {
794
357
  const result = await httpClient.request(reqOpts);
795
358
  sideEffects?.onSuccess?.(result);
796
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.card;
359
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.pipeline;
797
360
  } catch (err) {
798
361
  const transformedError = (0, import_transform_error.transformError)(
799
362
  err,
800
363
  {
801
364
  spreadPathsToArguments: {},
802
- explicitPathsToArguments: { card: "$[0].card" },
365
+ explicitPathsToArguments: { pipeline: "$[0]" },
803
366
  singleArgumentUnchanged: false
804
367
  },
805
- ["options"]
368
+ ["pipeline"]
806
369
  );
807
370
  sideEffects?.onError?.(err);
808
371
  throw transformedError;
809
372
  }
810
373
  }
811
- async function getCard2(cardId) {
374
+ async function getPipeline2(pipelineId) {
812
375
  const { httpClient, sideEffects } = arguments[1];
813
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ cardId });
814
- const reqOpts = getCard(payload);
376
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
377
+ pipelineId
378
+ });
379
+ const reqOpts = getPipeline(payload);
815
380
  sideEffects?.onSiteCall?.();
816
381
  try {
817
382
  const result = await httpClient.request(reqOpts);
818
383
  sideEffects?.onSuccess?.(result);
819
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.card;
384
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.pipeline;
820
385
  } catch (err) {
821
386
  const transformedError = (0, import_transform_error.transformError)(
822
387
  err,
823
388
  {
824
389
  spreadPathsToArguments: {},
825
- explicitPathsToArguments: { cardId: "$[0]" },
390
+ explicitPathsToArguments: { pipelineId: "$[0]" },
826
391
  singleArgumentUnchanged: false
827
392
  },
828
- ["cardId"]
393
+ ["pipelineId"]
829
394
  );
830
395
  sideEffects?.onError?.(err);
831
396
  throw transformedError;
832
397
  }
833
398
  }
834
- async function updateCard2(_id, options) {
399
+ async function updatePipeline2(_id, pipeline) {
835
400
  const { httpClient, sideEffects } = arguments[2];
836
401
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
837
- card: { ...options?.card, id: _id }
402
+ pipeline: { ...pipeline, id: _id }
838
403
  });
839
- const reqOpts = updateCard(payload);
404
+ const reqOpts = updatePipeline(payload);
840
405
  sideEffects?.onSiteCall?.();
841
406
  try {
842
407
  const result = await httpClient.request(reqOpts);
843
408
  sideEffects?.onSuccess?.(result);
844
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.card;
409
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.pipeline;
845
410
  } catch (err) {
846
411
  const transformedError = (0, import_transform_error.transformError)(
847
412
  err,
848
413
  {
849
- spreadPathsToArguments: { card: "$[1].card" },
850
- explicitPathsToArguments: { "card.id": "$[0]" },
414
+ spreadPathsToArguments: { pipeline: "$[1]" },
415
+ explicitPathsToArguments: { "pipeline.id": "$[0]" },
851
416
  singleArgumentUnchanged: false
852
417
  },
853
- ["_id", "options"]
418
+ ["_id", "pipeline"]
854
419
  );
855
420
  sideEffects?.onError?.(err);
856
421
  throw transformedError;
857
422
  }
858
423
  }
859
- async function moveCard2(cardId, stageId, options) {
860
- const { httpClient, sideEffects } = arguments[3];
424
+ async function deletePipeline2(pipelineId) {
425
+ const { httpClient, sideEffects } = arguments[1];
861
426
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
862
- cardId,
863
- stageId,
864
- revision: options?.revision,
865
- outcome: options?.outcome
427
+ pipelineId
866
428
  });
867
- const reqOpts = moveCard(payload);
429
+ const reqOpts = deletePipeline(payload);
868
430
  sideEffects?.onSiteCall?.();
869
431
  try {
870
432
  const result = await httpClient.request(reqOpts);
@@ -875,47 +437,20 @@ async function moveCard2(cardId, stageId, options) {
875
437
  err,
876
438
  {
877
439
  spreadPathsToArguments: {},
878
- explicitPathsToArguments: {
879
- cardId: "$[0]",
880
- stageId: "$[1]",
881
- revision: "$[2].revision",
882
- outcome: "$[2].outcome"
883
- },
884
- singleArgumentUnchanged: false
885
- },
886
- ["cardId", "stageId", "options"]
887
- );
888
- sideEffects?.onError?.(err);
889
- throw transformedError;
890
- }
891
- }
892
- async function deleteCard2(cardId) {
893
- const { httpClient, sideEffects } = arguments[1];
894
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ cardId });
895
- const reqOpts = deleteCard(payload);
896
- sideEffects?.onSiteCall?.();
897
- try {
898
- const result = await httpClient.request(reqOpts);
899
- sideEffects?.onSuccess?.(result);
900
- } catch (err) {
901
- const transformedError = (0, import_transform_error.transformError)(
902
- err,
903
- {
904
- spreadPathsToArguments: {},
905
- explicitPathsToArguments: { cardId: "$[0]" },
440
+ explicitPathsToArguments: { pipelineId: "$[0]" },
906
441
  singleArgumentUnchanged: false
907
442
  },
908
- ["cardId"]
443
+ ["pipelineId"]
909
444
  );
910
445
  sideEffects?.onError?.(err);
911
446
  throw transformedError;
912
447
  }
913
448
  }
914
- function queryCards2() {
449
+ function queryPipelines2() {
915
450
  const { httpClient, sideEffects } = arguments[0];
916
451
  return (0, import_query_builder.queryBuilder)({
917
452
  func: async (payload) => {
918
- const reqOpts = queryCards(payload);
453
+ const reqOpts = queryPipelines(payload);
919
454
  sideEffects?.onSiteCall?.();
920
455
  try {
921
456
  const result = await httpClient.request(reqOpts);
@@ -938,7 +473,7 @@ function queryCards2() {
938
473
  (0, import_transform_paths2.transformPaths)(data, [])
939
474
  );
940
475
  return {
941
- items: transformedData?.cards,
476
+ items: transformedData?.pipelines,
942
477
  pagingMetadata: transformedData?.pagingMetadata
943
478
  };
944
479
  },
@@ -954,10 +489,10 @@ function queryCards2() {
954
489
  transformationPaths: {}
955
490
  });
956
491
  }
957
- async function typedQueryCards(query) {
492
+ async function typedQueryPipelines(query) {
958
493
  const { httpClient, sideEffects } = arguments[1];
959
494
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
960
- const reqOpts = queryCards(payload);
495
+ const reqOpts = queryPipelines(payload);
961
496
  sideEffects?.onSiteCall?.();
962
497
  try {
963
498
  const result = await httpClient.request(reqOpts);
@@ -980,163 +515,17 @@ async function typedQueryCards(query) {
980
515
  var utils = {
981
516
  query: {
982
517
  ...(0, import_query_builder_utils.createQueryUtils)()
983
- },
984
- search: {
985
- ...(0, import_search_builder_utils.createSearchUtils)()
986
518
  }
987
519
  };
988
- async function searchCards2(search, options) {
989
- const { httpClient, sideEffects } = arguments[2];
990
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
991
- search,
992
- nameFormat: options?.nameFormat
993
- });
994
- const reqOpts = searchCards(payload);
995
- sideEffects?.onSiteCall?.();
996
- try {
997
- const result = await httpClient.request(reqOpts);
998
- sideEffects?.onSuccess?.(result);
999
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1000
- } catch (err) {
1001
- const transformedError = (0, import_transform_error.transformError)(
1002
- err,
1003
- {
1004
- spreadPathsToArguments: {},
1005
- explicitPathsToArguments: {
1006
- search: "$[0]",
1007
- nameFormat: "$[1].nameFormat"
1008
- },
1009
- singleArgumentUnchanged: false
1010
- },
1011
- ["search", "options"]
1012
- );
1013
- sideEffects?.onError?.(err);
1014
- throw transformedError;
1015
- }
1016
- }
1017
- async function searchCardsByStage2(pipelineId, options) {
1018
- const { httpClient, sideEffects } = arguments[2];
1019
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1020
- pipelineId,
1021
- stageIds: options?.stageIds,
1022
- search: options?.search,
1023
- nameFormat: options?.nameFormat
1024
- });
1025
- const reqOpts = searchCardsByStage(payload);
1026
- sideEffects?.onSiteCall?.();
1027
- try {
1028
- const result = await httpClient.request(reqOpts);
1029
- sideEffects?.onSuccess?.(result);
1030
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1031
- } catch (err) {
1032
- const transformedError = (0, import_transform_error.transformError)(
1033
- err,
1034
- {
1035
- spreadPathsToArguments: {},
1036
- explicitPathsToArguments: {
1037
- pipelineId: "$[0]",
1038
- stageIds: "$[1].stageIds",
1039
- search: "$[1].search",
1040
- nameFormat: "$[1].nameFormat"
1041
- },
1042
- singleArgumentUnchanged: false
1043
- },
1044
- ["pipelineId", "options"]
1045
- );
1046
- sideEffects?.onError?.(err);
1047
- throw transformedError;
1048
- }
1049
- }
1050
- async function bulkCreateCards2(cards, options) {
1051
- const { httpClient, sideEffects } = arguments[2];
1052
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1053
- cards,
1054
- returnEntity: options?.returnEntity
1055
- });
1056
- const reqOpts = bulkCreateCards(payload);
1057
- sideEffects?.onSiteCall?.();
1058
- try {
1059
- const result = await httpClient.request(reqOpts);
1060
- sideEffects?.onSuccess?.(result);
1061
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1062
- } catch (err) {
1063
- const transformedError = (0, import_transform_error.transformError)(
1064
- err,
1065
- {
1066
- spreadPathsToArguments: {},
1067
- explicitPathsToArguments: {
1068
- cards: "$[0]",
1069
- returnEntity: "$[1].returnEntity"
1070
- },
1071
- singleArgumentUnchanged: false
1072
- },
1073
- ["cards", "options"]
1074
- );
1075
- sideEffects?.onError?.(err);
1076
- throw transformedError;
1077
- }
1078
- }
1079
- async function bulkUpdateCards2(cards, options) {
1080
- const { httpClient, sideEffects } = arguments[2];
1081
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1082
- cards,
1083
- returnEntity: options?.returnEntity
1084
- });
1085
- const reqOpts = bulkUpdateCards(payload);
1086
- sideEffects?.onSiteCall?.();
1087
- try {
1088
- const result = await httpClient.request(reqOpts);
1089
- sideEffects?.onSuccess?.(result);
1090
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1091
- } catch (err) {
1092
- const transformedError = (0, import_transform_error.transformError)(
1093
- err,
1094
- {
1095
- spreadPathsToArguments: {},
1096
- explicitPathsToArguments: {
1097
- cards: "$[0]",
1098
- returnEntity: "$[1].returnEntity"
1099
- },
1100
- singleArgumentUnchanged: false
1101
- },
1102
- ["cards", "options"]
1103
- );
1104
- sideEffects?.onError?.(err);
1105
- throw transformedError;
1106
- }
1107
- }
1108
- async function bulkDeleteCards2(cardIds) {
1109
- const { httpClient, sideEffects } = arguments[1];
1110
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ cardIds });
1111
- const reqOpts = bulkDeleteCards(payload);
1112
- sideEffects?.onSiteCall?.();
1113
- try {
1114
- const result = await httpClient.request(reqOpts);
1115
- sideEffects?.onSuccess?.(result);
1116
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1117
- } catch (err) {
1118
- const transformedError = (0, import_transform_error.transformError)(
1119
- err,
1120
- {
1121
- spreadPathsToArguments: {},
1122
- explicitPathsToArguments: { cardIds: "$[0]" },
1123
- singleArgumentUnchanged: false
1124
- },
1125
- ["cardIds"]
1126
- );
1127
- sideEffects?.onError?.(err);
1128
- throw transformedError;
1129
- }
1130
- }
1131
- async function bulkUpdateCardTags2(cardIds, options) {
520
+ async function bulkUpdatePipelineTags2(pipelineIds, options) {
1132
521
  const { httpClient, sideEffects } = arguments[2];
1133
522
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1134
- cardIds,
523
+ pipelineIds,
1135
524
  assignTags: options?.assignTags,
1136
525
  unassignTags: options?.unassignTags,
1137
526
  returnEntity: options?.returnEntity
1138
527
  });
1139
- const reqOpts = bulkUpdateCardTags(payload);
528
+ const reqOpts = bulkUpdatePipelineTags(payload);
1140
529
  sideEffects?.onSiteCall?.();
1141
530
  try {
1142
531
  const result = await httpClient.request(reqOpts);
@@ -1148,27 +537,28 @@ async function bulkUpdateCardTags2(cardIds, options) {
1148
537
  {
1149
538
  spreadPathsToArguments: {},
1150
539
  explicitPathsToArguments: {
1151
- cardIds: "$[0]",
540
+ pipelineIds: "$[0]",
1152
541
  assignTags: "$[1].assignTags",
1153
542
  unassignTags: "$[1].unassignTags",
1154
543
  returnEntity: "$[1].returnEntity"
1155
544
  },
1156
545
  singleArgumentUnchanged: false
1157
546
  },
1158
- ["cardIds", "options"]
547
+ ["pipelineIds", "options"]
1159
548
  );
1160
549
  sideEffects?.onError?.(err);
1161
550
  throw transformedError;
1162
551
  }
1163
552
  }
1164
- async function bulkUpdateCardTagsByFilter2(filter, options) {
553
+ async function bulkUpdatePipelineTagsByFilter2(filter, options) {
1165
554
  const { httpClient, sideEffects } = arguments[2];
1166
555
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1167
556
  filter,
1168
557
  assignTags: options?.assignTags,
1169
- unassignTags: options?.unassignTags
558
+ unassignTags: options?.unassignTags,
559
+ returnEntity: options?.returnEntity
1170
560
  });
1171
- const reqOpts = bulkUpdateCardTagsByFilter(payload);
561
+ const reqOpts = bulkUpdatePipelineTagsByFilter(payload);
1172
562
  sideEffects?.onSiteCall?.();
1173
563
  try {
1174
564
  const result = await httpClient.request(reqOpts);
@@ -1182,7 +572,8 @@ async function bulkUpdateCardTagsByFilter2(filter, options) {
1182
572
  explicitPathsToArguments: {
1183
573
  filter: "$[0]",
1184
574
  assignTags: "$[1].assignTags",
1185
- unassignTags: "$[1].unassignTags"
575
+ unassignTags: "$[1].unassignTags",
576
+ returnEntity: "$[1].returnEntity"
1186
577
  },
1187
578
  singleArgumentUnchanged: false
1188
579
  },
@@ -1193,135 +584,67 @@ async function bulkUpdateCardTagsByFilter2(filter, options) {
1193
584
  }
1194
585
  }
1195
586
 
1196
- // src/crm-pipelines-v1-card-pipelines.public.ts
1197
- function createCard3(httpClient) {
1198
- return (options) => createCard2(
1199
- options,
587
+ // src/crm-pipelines-v1-pipeline-pipelines.public.ts
588
+ function createPipeline3(httpClient) {
589
+ return (pipeline) => createPipeline2(
590
+ pipeline,
1200
591
  // @ts-ignore
1201
592
  { httpClient }
1202
593
  );
1203
594
  }
1204
- function getCard3(httpClient) {
1205
- return (cardId) => getCard2(
1206
- cardId,
595
+ function getPipeline3(httpClient) {
596
+ return (pipelineId) => getPipeline2(
597
+ pipelineId,
1207
598
  // @ts-ignore
1208
599
  { httpClient }
1209
600
  );
1210
601
  }
1211
- function updateCard3(httpClient) {
1212
- return (_id, options) => updateCard2(
602
+ function updatePipeline3(httpClient) {
603
+ return (_id, pipeline) => updatePipeline2(
1213
604
  _id,
1214
- options,
1215
- // @ts-ignore
1216
- { httpClient }
1217
- );
1218
- }
1219
- function moveCard3(httpClient) {
1220
- return (cardId, stageId, options) => moveCard2(
1221
- cardId,
1222
- stageId,
1223
- options,
605
+ pipeline,
1224
606
  // @ts-ignore
1225
607
  { httpClient }
1226
608
  );
1227
609
  }
1228
- function deleteCard3(httpClient) {
1229
- return (cardId) => deleteCard2(
1230
- cardId,
1231
- // @ts-ignore
1232
- { httpClient }
1233
- );
1234
- }
1235
- function queryCards3(httpClient) {
1236
- return () => queryCards2(
1237
- // @ts-ignore
1238
- { httpClient }
1239
- );
1240
- }
1241
- function typedQueryCards2(httpClient) {
1242
- return (query) => typedQueryCards(
1243
- query,
1244
- // @ts-ignore
1245
- { httpClient }
1246
- );
1247
- }
1248
- function searchCards3(httpClient) {
1249
- return (search, options) => searchCards2(
1250
- search,
1251
- options,
1252
- // @ts-ignore
1253
- { httpClient }
1254
- );
1255
- }
1256
- function searchCardsByStage3(httpClient) {
1257
- return (pipelineId, options) => searchCardsByStage2(
610
+ function deletePipeline3(httpClient) {
611
+ return (pipelineId) => deletePipeline2(
1258
612
  pipelineId,
1259
- options,
1260
- // @ts-ignore
1261
- { httpClient }
1262
- );
1263
- }
1264
- function bulkCreateCards3(httpClient) {
1265
- return (cards, options) => bulkCreateCards2(
1266
- cards,
1267
- options,
1268
613
  // @ts-ignore
1269
614
  { httpClient }
1270
615
  );
1271
616
  }
1272
- function bulkUpdateCards3(httpClient) {
1273
- return (cards, options) => bulkUpdateCards2(
1274
- cards,
1275
- options,
617
+ function queryPipelines3(httpClient) {
618
+ return () => queryPipelines2(
1276
619
  // @ts-ignore
1277
620
  { httpClient }
1278
621
  );
1279
622
  }
1280
- function bulkDeleteCards3(httpClient) {
1281
- return (cardIds) => bulkDeleteCards2(
1282
- cardIds,
623
+ function typedQueryPipelines2(httpClient) {
624
+ return (query) => typedQueryPipelines(
625
+ query,
1283
626
  // @ts-ignore
1284
627
  { httpClient }
1285
628
  );
1286
629
  }
1287
- function bulkUpdateCardTags3(httpClient) {
1288
- return (cardIds, options) => bulkUpdateCardTags2(
1289
- cardIds,
630
+ function bulkUpdatePipelineTags3(httpClient) {
631
+ return (pipelineIds, options) => bulkUpdatePipelineTags2(
632
+ pipelineIds,
1290
633
  options,
1291
634
  // @ts-ignore
1292
635
  { httpClient }
1293
636
  );
1294
637
  }
1295
- function bulkUpdateCardTagsByFilter3(httpClient) {
1296
- return (filter, options) => bulkUpdateCardTagsByFilter2(
638
+ function bulkUpdatePipelineTagsByFilter3(httpClient) {
639
+ return (filter, options) => bulkUpdatePipelineTagsByFilter2(
1297
640
  filter,
1298
641
  options,
1299
642
  // @ts-ignore
1300
643
  { httpClient }
1301
644
  );
1302
645
  }
1303
- var onCardAssigned = (0, import_sdk_types.EventDefinition)(
1304
- "wix.crm.pipelines.v1.card_assigned",
1305
- true,
1306
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1307
- (0, import_transform_paths3.transformPaths)(event, [
1308
- {
1309
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1310
- paths: [
1311
- { path: "data.card.createdDate" },
1312
- { path: "data.card.updatedDate" },
1313
- { path: "data.card.stageUpdatedDate" },
1314
- { path: "data.card.dueDate" },
1315
- { path: "data.card.staleDate" },
1316
- { path: "data.card.linkedEntities.linkedDate" },
1317
- { path: "metadata.eventTime" }
1318
- ]
1319
- }
1320
- ])
1321
- )
1322
- )();
1323
- var onCardCreated = (0, import_sdk_types.EventDefinition)(
1324
- "wix.crm.pipelines.v1.card_created",
646
+ var onPipelineCreated = (0, import_sdk_types.EventDefinition)(
647
+ "wix.crm.pipelines.v1.pipeline_created",
1325
648
  true,
1326
649
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1327
650
  (0, import_transform_paths3.transformPaths)(event, [
@@ -1330,18 +653,14 @@ var onCardCreated = (0, import_sdk_types.EventDefinition)(
1330
653
  paths: [
1331
654
  { path: "entity.createdDate" },
1332
655
  { path: "entity.updatedDate" },
1333
- { path: "entity.stageUpdatedDate" },
1334
- { path: "entity.dueDate" },
1335
- { path: "entity.staleDate" },
1336
- { path: "entity.linkedEntities.linkedDate" },
1337
656
  { path: "metadata.eventTime" }
1338
657
  ]
1339
658
  }
1340
659
  ])
1341
660
  )
1342
661
  )();
1343
- var onCardDeleted = (0, import_sdk_types.EventDefinition)(
1344
- "wix.crm.pipelines.v1.card_deleted",
662
+ var onPipelineDeleted = (0, import_sdk_types.EventDefinition)(
663
+ "wix.crm.pipelines.v1.pipeline_deleted",
1345
664
  true,
1346
665
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1347
666
  (0, import_transform_paths3.transformPaths)(event, [
@@ -1350,78 +669,14 @@ var onCardDeleted = (0, import_sdk_types.EventDefinition)(
1350
669
  paths: [
1351
670
  { path: "entity.createdDate" },
1352
671
  { path: "entity.updatedDate" },
1353
- { path: "entity.stageUpdatedDate" },
1354
- { path: "entity.dueDate" },
1355
- { path: "entity.staleDate" },
1356
- { path: "entity.linkedEntities.linkedDate" },
1357
- { path: "metadata.eventTime" }
1358
- ]
1359
- }
1360
- ])
1361
- )
1362
- )();
1363
- var onCardMoved = (0, import_sdk_types.EventDefinition)(
1364
- "wix.crm.pipelines.v1.card_moved",
1365
- true,
1366
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1367
- (0, import_transform_paths3.transformPaths)(event, [
1368
- {
1369
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1370
- paths: [
1371
- { path: "data.card.createdDate" },
1372
- { path: "data.card.updatedDate" },
1373
- { path: "data.card.stageUpdatedDate" },
1374
- { path: "data.card.dueDate" },
1375
- { path: "data.card.staleDate" },
1376
- { path: "data.card.linkedEntities.linkedDate" },
1377
- { path: "metadata.eventTime" }
1378
- ]
1379
- }
1380
- ])
1381
- )
1382
- )();
1383
- var onCardOverdue = (0, import_sdk_types.EventDefinition)(
1384
- "wix.crm.pipelines.v1.card_overdue",
1385
- true,
1386
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1387
- (0, import_transform_paths3.transformPaths)(event, [
1388
- {
1389
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1390
- paths: [
1391
- { path: "data.card.createdDate" },
1392
- { path: "data.card.updatedDate" },
1393
- { path: "data.card.stageUpdatedDate" },
1394
- { path: "data.card.dueDate" },
1395
- { path: "data.card.staleDate" },
1396
- { path: "data.card.linkedEntities.linkedDate" },
1397
- { path: "metadata.eventTime" }
1398
- ]
1399
- }
1400
- ])
1401
- )
1402
- )();
1403
- var onCardStale = (0, import_sdk_types.EventDefinition)(
1404
- "wix.crm.pipelines.v1.card_stale",
1405
- true,
1406
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1407
- (0, import_transform_paths3.transformPaths)(event, [
1408
- {
1409
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1410
- paths: [
1411
- { path: "data.card.createdDate" },
1412
- { path: "data.card.updatedDate" },
1413
- { path: "data.card.stageUpdatedDate" },
1414
- { path: "data.card.dueDate" },
1415
- { path: "data.card.staleDate" },
1416
- { path: "data.card.linkedEntities.linkedDate" },
1417
672
  { path: "metadata.eventTime" }
1418
673
  ]
1419
674
  }
1420
675
  ])
1421
676
  )
1422
677
  )();
1423
- var onCardUpdated = (0, import_sdk_types.EventDefinition)(
1424
- "wix.crm.pipelines.v1.card_updated",
678
+ var onPipelineUpdated = (0, import_sdk_types.EventDefinition)(
679
+ "wix.crm.pipelines.v1.pipeline_updated",
1425
680
  true,
1426
681
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1427
682
  (0, import_transform_paths3.transformPaths)(event, [
@@ -1430,31 +685,23 @@ var onCardUpdated = (0, import_sdk_types.EventDefinition)(
1430
685
  paths: [
1431
686
  { path: "entity.createdDate" },
1432
687
  { path: "entity.updatedDate" },
1433
- { path: "entity.stageUpdatedDate" },
1434
- { path: "entity.dueDate" },
1435
- { path: "entity.staleDate" },
1436
- { path: "entity.linkedEntities.linkedDate" },
1437
688
  { path: "metadata.eventTime" },
1438
689
  { path: "modifiedFields.createdDate" },
1439
- { path: "modifiedFields.updatedDate" },
1440
- { path: "modifiedFields.stageUpdatedDate" },
1441
- { path: "modifiedFields.dueDate" },
1442
- { path: "modifiedFields.staleDate" },
1443
- { path: "modifiedFields.linkedEntities.linkedDate" }
690
+ { path: "modifiedFields.updatedDate" }
1444
691
  ]
1445
692
  }
1446
693
  ])
1447
694
  )
1448
695
  )();
1449
696
 
1450
- // src/crm-pipelines-v1-card-pipelines.context.ts
697
+ // src/crm-pipelines-v1-pipeline-pipelines.context.ts
1451
698
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
1452
699
  var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
1453
700
  var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
1454
- function customQueryCards(httpClient) {
701
+ function customQueryPipelines(httpClient) {
1455
702
  const router = (0, import_query_method_router.createQueryOverloadRouter)({
1456
- builderQueryFunction: () => queryCards3(httpClient)(),
1457
- typedQueryFunction: (query) => typedQueryCards2(httpClient)(query),
703
+ builderQueryFunction: () => queryPipelines3(httpClient)(),
704
+ typedQueryFunction: (query) => typedQueryPipelines2(httpClient)(query),
1458
705
  hasOptionsParameter: false
1459
706
  });
1460
707
  function overloadedQuery(query) {
@@ -1462,61 +709,31 @@ function customQueryCards(httpClient) {
1462
709
  }
1463
710
  return overloadedQuery;
1464
711
  }
1465
- var createCard4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createCard3);
1466
- var getCard4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCard3);
1467
- var updateCard4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateCard3);
1468
- var moveCard4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(moveCard3);
1469
- var deleteCard4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteCard3);
1470
- var searchCards4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchCards3);
1471
- var searchCardsByStage4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchCardsByStage3);
1472
- var bulkCreateCards4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateCards3);
1473
- var bulkUpdateCards4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateCards3);
1474
- var bulkDeleteCards4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteCards3);
1475
- var bulkUpdateCardTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateCardTags3);
1476
- var bulkUpdateCardTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateCardTagsByFilter3);
1477
- var queryCards4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryCards);
1478
- var onCardAssigned2 = (0, import_event_definition_modules.createEventModule)(onCardAssigned);
1479
- var onCardCreated2 = (0, import_event_definition_modules.createEventModule)(onCardCreated);
1480
- var onCardDeleted2 = (0, import_event_definition_modules.createEventModule)(onCardDeleted);
1481
- var onCardMoved2 = (0, import_event_definition_modules.createEventModule)(onCardMoved);
1482
- var onCardOverdue2 = (0, import_event_definition_modules.createEventModule)(onCardOverdue);
1483
- var onCardStale2 = (0, import_event_definition_modules.createEventModule)(onCardStale);
1484
- var onCardUpdated2 = (0, import_event_definition_modules.createEventModule)(onCardUpdated);
712
+ var createPipeline4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createPipeline3);
713
+ var getPipeline4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPipeline3);
714
+ var updatePipeline4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updatePipeline3);
715
+ var deletePipeline4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deletePipeline3);
716
+ var bulkUpdatePipelineTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdatePipelineTags3);
717
+ var bulkUpdatePipelineTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdatePipelineTagsByFilter3);
718
+ var queryPipelines4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryPipelines);
719
+ var onPipelineCreated2 = (0, import_event_definition_modules.createEventModule)(onPipelineCreated);
720
+ var onPipelineDeleted2 = (0, import_event_definition_modules.createEventModule)(onPipelineDeleted);
721
+ var onPipelineUpdated2 = (0, import_event_definition_modules.createEventModule)(onPipelineUpdated);
1485
722
  // Annotate the CommonJS export names for ESM import in node:
1486
723
  0 && (module.exports = {
1487
- AggregationType,
1488
- Interval,
1489
- MissingValues,
1490
- Mode,
1491
- NameFormat,
1492
- NestedAggregationType,
1493
724
  Outcome,
1494
- Priority,
1495
- ScalarType,
1496
- SortDirection,
1497
725
  SortOrder,
1498
- SortType,
1499
726
  WebhookIdentityType,
1500
- bulkCreateCards,
1501
- bulkDeleteCards,
1502
- bulkUpdateCardTags,
1503
- bulkUpdateCardTagsByFilter,
1504
- bulkUpdateCards,
1505
- createCard,
1506
- deleteCard,
1507
- getCard,
1508
- moveCard,
1509
- onCardAssigned,
1510
- onCardCreated,
1511
- onCardDeleted,
1512
- onCardMoved,
1513
- onCardOverdue,
1514
- onCardStale,
1515
- onCardUpdated,
1516
- queryCards,
1517
- searchCards,
1518
- searchCardsByStage,
1519
- updateCard,
727
+ bulkUpdatePipelineTags,
728
+ bulkUpdatePipelineTagsByFilter,
729
+ createPipeline,
730
+ deletePipeline,
731
+ getPipeline,
732
+ onPipelineCreated,
733
+ onPipelineDeleted,
734
+ onPipelineUpdated,
735
+ queryPipelines,
736
+ updatePipeline,
1520
737
  utils
1521
738
  });
1522
739
  //# sourceMappingURL=index.js.map