@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,130 +20,108 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.typings.ts
21
21
  var index_typings_exports = {};
22
22
  __export(index_typings_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: () => bulkCreateCards2,
37
- bulkDeleteCards: () => bulkDeleteCards2,
38
- bulkUpdateCardTags: () => bulkUpdateCardTags2,
39
- bulkUpdateCardTagsByFilter: () => bulkUpdateCardTagsByFilter2,
40
- bulkUpdateCards: () => bulkUpdateCards2,
41
- createCard: () => createCard2,
42
- deleteCard: () => deleteCard2,
43
- getCard: () => getCard2,
44
- moveCard: () => moveCard2,
45
- queryCards: () => queryCards2,
46
- searchCards: () => searchCards2,
47
- searchCardsByStage: () => searchCardsByStage2,
48
- typedQueryCards: () => typedQueryCards,
49
- updateCard: () => updateCard2,
26
+ bulkUpdatePipelineTags: () => bulkUpdatePipelineTags2,
27
+ bulkUpdatePipelineTagsByFilter: () => bulkUpdatePipelineTagsByFilter2,
28
+ createPipeline: () => createPipeline2,
29
+ deletePipeline: () => deletePipeline2,
30
+ getPipeline: () => getPipeline2,
31
+ queryPipelines: () => queryPipelines2,
32
+ typedQueryPipelines: () => typedQueryPipelines,
33
+ updatePipeline: () => updatePipeline2,
50
34
  utils: () => utils
51
35
  });
52
36
  module.exports = __toCommonJS(index_typings_exports);
53
37
 
54
- // src/crm-pipelines-v1-card-pipelines.universal.ts
38
+ // src/crm-pipelines-v1-pipeline-pipelines.universal.ts
55
39
  var import_transform_error = require("@wix/sdk-runtime/transform-error");
56
40
  var import_query_builder = require("@wix/sdk-runtime/query-builder");
57
41
  var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
58
42
 
59
- // src/crm-pipelines-v1-card-pipelines.http.ts
43
+ // src/crm-pipelines-v1-pipeline-pipelines.http.ts
60
44
  var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
61
- var import_float = require("@wix/sdk-runtime/transformations/float");
62
- var import_float2 = require("@wix/sdk-runtime/transformations/float");
63
45
  var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
64
46
  var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
65
47
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
66
48
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
67
49
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
68
- function resolveWixCrmPipelinesCardsV1CardsUrl(opts) {
50
+ function resolveWixCrmPipelinesPipelinesV1PipelinesUrl(opts) {
69
51
  const domainToMappings = {
70
52
  "manage._base_domain_": [
71
53
  {
72
- srcPath: "/_api/cards-app/v1/cards",
73
- destPath: "/v1/cards"
54
+ srcPath: "/_api/pipelines-app/v1/pipelines",
55
+ destPath: "/v1/pipelines"
74
56
  },
75
57
  {
76
- srcPath: "/_api/cards-app/v1/bulk/cards",
77
- destPath: "/v1/bulk/cards"
58
+ srcPath: "/_api/pipelines-app/v1/bulk/pipelines/",
59
+ destPath: "/v1/bulk/pipelines/"
78
60
  },
79
61
  {
80
- srcPath: "/_api/cards/v1/cards",
81
- destPath: "/v1/cards"
62
+ srcPath: "/_api/pipelines/v1/pipelines",
63
+ destPath: "/v1/pipelines"
82
64
  },
83
65
  {
84
- srcPath: "/_api/cards/v1/bulk/cards",
85
- destPath: "/v1/bulk/cards"
66
+ srcPath: "/_api/pipelines/v1/bulk/pipelines",
67
+ destPath: "/v1/bulk/pipelines"
86
68
  }
87
69
  ],
88
70
  _: [
89
71
  {
90
- srcPath: "/_api/cards/v1/cards",
91
- destPath: "/v1/cards"
72
+ srcPath: "/_api/pipelines/v1/pipelines",
73
+ destPath: "/v1/pipelines"
92
74
  },
93
75
  {
94
- srcPath: "/_api/cards/v1/bulk/cards",
95
- destPath: "/v1/bulk/cards"
76
+ srcPath: "/_api/pipelines/v1/bulk/pipelines",
77
+ destPath: "/v1/bulk/pipelines"
96
78
  }
97
79
  ],
98
80
  "*.dev.wix-code.com": [
99
81
  {
100
- srcPath: "/_api/cards/v1/cards",
101
- destPath: "/v1/cards"
82
+ srcPath: "/_api/pipelines/v1/pipelines",
83
+ destPath: "/v1/pipelines"
102
84
  },
103
85
  {
104
- srcPath: "/_api/cards/v1/bulk/cards",
105
- destPath: "/v1/bulk/cards"
86
+ srcPath: "/_api/pipelines/v1/bulk/pipelines",
87
+ destPath: "/v1/bulk/pipelines"
106
88
  }
107
89
  ],
108
90
  "www.wixapis.com": [
109
91
  {
110
- srcPath: "/crm/pipelines/v1/cards",
111
- destPath: "/v1/cards"
92
+ srcPath: "/crm/pipelines/v1/pipelines",
93
+ destPath: "/v1/pipelines"
112
94
  },
113
95
  {
114
- srcPath: "/crm/pipelines/v1/bulk/cards",
115
- destPath: "/v1/bulk/cards"
96
+ srcPath: "/crm/pipelines/v1/bulk/pipelines",
97
+ destPath: "/v1/bulk/pipelines"
116
98
  }
117
99
  ]
118
100
  };
119
101
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
120
102
  }
121
103
  var PACKAGE_NAME = "@wix/auto_sdk_crm_pipelines";
122
- function createCard(payload) {
123
- function __createCard({ host }) {
104
+ function createPipeline(payload) {
105
+ function __createPipeline({ host }) {
124
106
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
125
107
  {
126
108
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
127
109
  paths: [
128
- { path: "card.createdDate" },
129
- { path: "card.updatedDate" },
130
- { path: "card.stageUpdatedDate" },
131
- { path: "card.dueDate" },
132
- { path: "card.staleDate" },
133
- { path: "card.linkedEntities.linkedDate" }
110
+ { path: "pipeline.createdDate" },
111
+ { path: "pipeline.updatedDate" }
134
112
  ]
135
113
  }
136
114
  ]);
137
115
  const metadata = {
138
- entityFqdn: "wix.crm.pipelines.v1.card",
116
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
139
117
  method: "POST",
140
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.CreateCard",
118
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.CreatePipeline",
141
119
  packageName: PACKAGE_NAME,
142
120
  migrationOptions: {
143
121
  optInTransformResponse: true
144
122
  },
145
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
146
- protoPath: "/v1/cards",
123
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
124
+ protoPath: "/v1/pipelines",
147
125
  data: serializedData,
148
126
  host
149
127
  }),
@@ -152,32 +130,28 @@ function createCard(payload) {
152
130
  {
153
131
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
154
132
  paths: [
155
- { path: "card.createdDate" },
156
- { path: "card.updatedDate" },
157
- { path: "card.stageUpdatedDate" },
158
- { path: "card.dueDate" },
159
- { path: "card.staleDate" },
160
- { path: "card.linkedEntities.linkedDate" }
133
+ { path: "pipeline.createdDate" },
134
+ { path: "pipeline.updatedDate" }
161
135
  ]
162
136
  }
163
137
  ])
164
138
  };
165
139
  return metadata;
166
140
  }
167
- return __createCard;
141
+ return __createPipeline;
168
142
  }
169
- function getCard(payload) {
170
- function __getCard({ host }) {
143
+ function getPipeline(payload) {
144
+ function __getPipeline({ host }) {
171
145
  const metadata = {
172
- entityFqdn: "wix.crm.pipelines.v1.card",
146
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
173
147
  method: "GET",
174
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.GetCard",
148
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.GetPipeline",
175
149
  packageName: PACKAGE_NAME,
176
150
  migrationOptions: {
177
151
  optInTransformResponse: true
178
152
  },
179
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
180
- protoPath: "/v1/cards/{cardId}",
153
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
154
+ protoPath: "/v1/pipelines/{pipelineId}",
181
155
  data: payload,
182
156
  host
183
157
  }),
@@ -186,22 +160,18 @@ function getCard(payload) {
186
160
  {
187
161
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
188
162
  paths: [
189
- { path: "card.createdDate" },
190
- { path: "card.updatedDate" },
191
- { path: "card.stageUpdatedDate" },
192
- { path: "card.dueDate" },
193
- { path: "card.staleDate" },
194
- { path: "card.linkedEntities.linkedDate" }
163
+ { path: "pipeline.createdDate" },
164
+ { path: "pipeline.updatedDate" }
195
165
  ]
196
166
  }
197
167
  ])
198
168
  };
199
169
  return metadata;
200
170
  }
201
- return __getCard;
171
+ return __getPipeline;
202
172
  }
203
- function updateCard(payload) {
204
- function __updateCard({ host }) {
173
+ function updatePipeline(payload) {
174
+ function __updatePipeline({ host }) {
205
175
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
206
176
  {
207
177
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
@@ -210,25 +180,21 @@ function updateCard(payload) {
210
180
  {
211
181
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
212
182
  paths: [
213
- { path: "card.createdDate" },
214
- { path: "card.updatedDate" },
215
- { path: "card.stageUpdatedDate" },
216
- { path: "card.dueDate" },
217
- { path: "card.staleDate" },
218
- { path: "card.linkedEntities.linkedDate" }
183
+ { path: "pipeline.createdDate" },
184
+ { path: "pipeline.updatedDate" }
219
185
  ]
220
186
  }
221
187
  ]);
222
188
  const metadata = {
223
- entityFqdn: "wix.crm.pipelines.v1.card",
189
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
224
190
  method: "PATCH",
225
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.UpdateCard",
191
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.UpdatePipeline",
226
192
  packageName: PACKAGE_NAME,
227
193
  migrationOptions: {
228
194
  optInTransformResponse: true
229
195
  },
230
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
231
- protoPath: "/v1/cards/{card.id}",
196
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
197
+ protoPath: "/v1/pipelines/{pipeline.id}",
232
198
  data: serializedData,
233
199
  host
234
200
  }),
@@ -237,66 +203,28 @@ function updateCard(payload) {
237
203
  {
238
204
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
239
205
  paths: [
240
- { path: "card.createdDate" },
241
- { path: "card.updatedDate" },
242
- { path: "card.stageUpdatedDate" },
243
- { path: "card.dueDate" },
244
- { path: "card.staleDate" },
245
- { path: "card.linkedEntities.linkedDate" }
206
+ { path: "pipeline.createdDate" },
207
+ { path: "pipeline.updatedDate" }
246
208
  ]
247
209
  }
248
210
  ])
249
211
  };
250
212
  return metadata;
251
213
  }
252
- return __updateCard;
214
+ return __updatePipeline;
253
215
  }
254
- function moveCard(payload) {
255
- function __moveCard({ host }) {
216
+ function deletePipeline(payload) {
217
+ function __deletePipeline({ host }) {
256
218
  const metadata = {
257
- entityFqdn: "wix.crm.pipelines.v1.card",
258
- method: "PATCH",
259
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.MoveCard",
260
- packageName: PACKAGE_NAME,
261
- migrationOptions: {
262
- optInTransformResponse: true
263
- },
264
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
265
- protoPath: "/v1/cards/move/{cardId}",
266
- data: payload,
267
- host
268
- }),
269
- data: payload,
270
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
271
- {
272
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
273
- paths: [
274
- { path: "card.createdDate" },
275
- { path: "card.updatedDate" },
276
- { path: "card.stageUpdatedDate" },
277
- { path: "card.dueDate" },
278
- { path: "card.staleDate" },
279
- { path: "card.linkedEntities.linkedDate" }
280
- ]
281
- }
282
- ])
283
- };
284
- return metadata;
285
- }
286
- return __moveCard;
287
- }
288
- function deleteCard(payload) {
289
- function __deleteCard({ host }) {
290
- const metadata = {
291
- entityFqdn: "wix.crm.pipelines.v1.card",
219
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
292
220
  method: "DELETE",
293
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.DeleteCard",
221
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.DeletePipeline",
294
222
  packageName: PACKAGE_NAME,
295
223
  migrationOptions: {
296
224
  optInTransformResponse: true
297
225
  },
298
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
299
- protoPath: "/v1/cards/{cardId}",
226
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
227
+ protoPath: "/v1/pipelines/{pipelineId}",
300
228
  data: payload,
301
229
  host
302
230
  }),
@@ -304,20 +232,20 @@ function deleteCard(payload) {
304
232
  };
305
233
  return metadata;
306
234
  }
307
- return __deleteCard;
235
+ return __deletePipeline;
308
236
  }
309
- function queryCards(payload) {
310
- function __queryCards({ host }) {
237
+ function queryPipelines(payload) {
238
+ function __queryPipelines({ host }) {
311
239
  const metadata = {
312
- entityFqdn: "wix.crm.pipelines.v1.card",
240
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
313
241
  method: "GET",
314
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.QueryCards",
242
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.QueryPipelines",
315
243
  packageName: PACKAGE_NAME,
316
244
  migrationOptions: {
317
245
  optInTransformResponse: true
318
246
  },
319
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
320
- protoPath: "/v1/cards/query",
247
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
248
+ protoPath: "/v1/pipelines/query",
321
249
  data: payload,
322
250
  host
323
251
  }),
@@ -326,20 +254,16 @@ function queryCards(payload) {
326
254
  {
327
255
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
328
256
  paths: [
329
- { path: "cards.createdDate" },
330
- { path: "cards.updatedDate" },
331
- { path: "cards.stageUpdatedDate" },
332
- { path: "cards.dueDate" },
333
- { path: "cards.staleDate" },
334
- { path: "cards.linkedEntities.linkedDate" }
257
+ { path: "pipelines.createdDate" },
258
+ { path: "pipelines.updatedDate" }
335
259
  ]
336
260
  }
337
261
  ]),
338
262
  fallback: [
339
263
  {
340
264
  method: "POST",
341
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
342
- protoPath: "/v1/cards/query",
265
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
266
+ protoPath: "/v1/pipelines/query",
343
267
  data: payload,
344
268
  host
345
269
  }),
@@ -349,290 +273,20 @@ function queryCards(payload) {
349
273
  };
350
274
  return metadata;
351
275
  }
352
- return __queryCards;
353
- }
354
- function searchCards(payload) {
355
- function __searchCards({ host }) {
356
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
357
- {
358
- transformFn: import_float.transformSDKFloatToRESTFloat,
359
- paths: [
360
- { path: "search.aggregations.range.buckets.from" },
361
- { path: "search.aggregations.range.buckets.to" },
362
- {
363
- path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
364
- },
365
- {
366
- path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
367
- }
368
- ]
369
- }
370
- ]);
371
- const metadata = {
372
- entityFqdn: "wix.crm.pipelines.v1.card",
373
- method: "GET",
374
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.SearchCards",
375
- packageName: PACKAGE_NAME,
376
- migrationOptions: {
377
- optInTransformResponse: true
378
- },
379
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
380
- protoPath: "/v1/cards/search",
381
- data: serializedData,
382
- host
383
- }),
384
- params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
385
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
386
- {
387
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
388
- paths: [
389
- { path: "cards.createdDate" },
390
- { path: "cards.updatedDate" },
391
- { path: "cards.stageUpdatedDate" },
392
- { path: "cards.dueDate" },
393
- { path: "cards.staleDate" },
394
- { path: "cards.linkedEntities.linkedDate" }
395
- ]
396
- },
397
- {
398
- transformFn: import_float2.transformRESTFloatToSDKFloat,
399
- paths: [
400
- { path: "aggregationData.results.ranges.results.from" },
401
- { path: "aggregationData.results.ranges.results.to" },
402
- {
403
- path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
404
- },
405
- {
406
- path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
407
- },
408
- {
409
- path: "aggregationData.results.nested.results.results.*.range.from"
410
- },
411
- {
412
- path: "aggregationData.results.nested.results.results.*.range.to"
413
- },
414
- { path: "aggregationData.results.scalar.value" },
415
- {
416
- path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
417
- },
418
- {
419
- path: "aggregationData.results.nested.results.results.*.scalar.value"
420
- }
421
- ]
422
- }
423
- ]),
424
- fallback: [
425
- {
426
- method: "POST",
427
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
428
- protoPath: "/v1/cards/search",
429
- data: serializedData,
430
- host
431
- }),
432
- data: serializedData
433
- }
434
- ]
435
- };
436
- return metadata;
437
- }
438
- return __searchCards;
439
- }
440
- function searchCardsByStage(payload) {
441
- function __searchCardsByStage({ host }) {
442
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
443
- {
444
- transformFn: import_float.transformSDKFloatToRESTFloat,
445
- paths: [
446
- { path: "search.aggregations.range.buckets.from" },
447
- { path: "search.aggregations.range.buckets.to" },
448
- {
449
- path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
450
- },
451
- {
452
- path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
453
- }
454
- ]
455
- }
456
- ]);
457
- const metadata = {
458
- entityFqdn: "wix.crm.pipelines.v1.card",
459
- method: "GET",
460
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.SearchCardsByStage",
461
- packageName: PACKAGE_NAME,
462
- migrationOptions: {
463
- optInTransformResponse: true
464
- },
465
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
466
- protoPath: "/v1/cards/search-by-stage",
467
- data: serializedData,
468
- host
469
- }),
470
- params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
471
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
472
- {
473
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
474
- paths: [
475
- { path: "results.cards.createdDate" },
476
- { path: "results.cards.updatedDate" },
477
- { path: "results.cards.stageUpdatedDate" },
478
- { path: "results.cards.dueDate" },
479
- { path: "results.cards.staleDate" },
480
- { path: "results.cards.linkedEntities.linkedDate" }
481
- ]
482
- },
483
- {
484
- transformFn: import_float2.transformRESTFloatToSDKFloat,
485
- paths: [
486
- { path: "results.aggregationData.results.ranges.results.from" },
487
- { path: "results.aggregationData.results.ranges.results.to" },
488
- {
489
- path: "results.aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
490
- },
491
- {
492
- path: "results.aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
493
- },
494
- {
495
- path: "results.aggregationData.results.nested.results.results.*.range.from"
496
- },
497
- {
498
- path: "results.aggregationData.results.nested.results.results.*.range.to"
499
- },
500
- { path: "results.aggregationData.results.scalar.value" },
501
- {
502
- path: "results.aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
503
- },
504
- {
505
- path: "results.aggregationData.results.nested.results.results.*.scalar.value"
506
- }
507
- ]
508
- }
509
- ]),
510
- fallback: [
511
- {
512
- method: "POST",
513
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
514
- protoPath: "/v1/cards/search-by-stage",
515
- data: serializedData,
516
- host
517
- }),
518
- data: serializedData
519
- }
520
- ]
521
- };
522
- return metadata;
523
- }
524
- return __searchCardsByStage;
525
- }
526
- function bulkCreateCards(payload) {
527
- function __bulkCreateCards({ host }) {
528
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
529
- {
530
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
531
- paths: [
532
- { path: "cards.createdDate" },
533
- { path: "cards.updatedDate" },
534
- { path: "cards.stageUpdatedDate" },
535
- { path: "cards.dueDate" },
536
- { path: "cards.staleDate" },
537
- { path: "cards.linkedEntities.linkedDate" }
538
- ]
539
- }
540
- ]);
541
- const metadata = {
542
- entityFqdn: "wix.crm.pipelines.v1.card",
543
- method: "POST",
544
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkCreateCards",
545
- packageName: PACKAGE_NAME,
546
- migrationOptions: {
547
- optInTransformResponse: true
548
- },
549
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
550
- protoPath: "/v1/bulk/cards/create",
551
- data: serializedData,
552
- host
553
- }),
554
- data: serializedData,
555
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
556
- {
557
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
558
- paths: [
559
- { path: "results.item.createdDate" },
560
- { path: "results.item.updatedDate" },
561
- { path: "results.item.stageUpdatedDate" },
562
- { path: "results.item.dueDate" },
563
- { path: "results.item.staleDate" },
564
- { path: "results.item.linkedEntities.linkedDate" }
565
- ]
566
- }
567
- ])
568
- };
569
- return metadata;
570
- }
571
- return __bulkCreateCards;
572
- }
573
- function bulkUpdateCards(payload) {
574
- function __bulkUpdateCards({ host }) {
575
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
576
- {
577
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
578
- paths: [{ path: "cards.fieldMask" }]
579
- },
580
- {
581
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
582
- paths: [
583
- { path: "cards.card.createdDate" },
584
- { path: "cards.card.updatedDate" },
585
- { path: "cards.card.stageUpdatedDate" },
586
- { path: "cards.card.dueDate" },
587
- { path: "cards.card.staleDate" },
588
- { path: "cards.card.linkedEntities.linkedDate" }
589
- ]
590
- }
591
- ]);
592
- const metadata = {
593
- entityFqdn: "wix.crm.pipelines.v1.card",
594
- method: "POST",
595
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkUpdateCards",
596
- packageName: PACKAGE_NAME,
597
- migrationOptions: {
598
- optInTransformResponse: true
599
- },
600
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
601
- protoPath: "/v1/bulk/cards/update",
602
- data: serializedData,
603
- host
604
- }),
605
- data: serializedData,
606
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
607
- {
608
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
609
- paths: [
610
- { path: "results.item.createdDate" },
611
- { path: "results.item.updatedDate" },
612
- { path: "results.item.stageUpdatedDate" },
613
- { path: "results.item.dueDate" },
614
- { path: "results.item.staleDate" },
615
- { path: "results.item.linkedEntities.linkedDate" }
616
- ]
617
- }
618
- ])
619
- };
620
- return metadata;
621
- }
622
- return __bulkUpdateCards;
276
+ return __queryPipelines;
623
277
  }
624
- function bulkDeleteCards(payload) {
625
- function __bulkDeleteCards({ host }) {
278
+ function bulkUpdatePipelineTags(payload) {
279
+ function __bulkUpdatePipelineTags({ host }) {
626
280
  const metadata = {
627
- entityFqdn: "wix.crm.pipelines.v1.card",
281
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
628
282
  method: "POST",
629
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkDeleteCards",
283
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.BulkUpdatePipelineTags",
630
284
  packageName: PACKAGE_NAME,
631
285
  migrationOptions: {
632
286
  optInTransformResponse: true
633
287
  },
634
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
635
- protoPath: "/v1/bulk/cards/delete",
288
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
289
+ protoPath: "/v1/bulk/pipelines/update-tags",
636
290
  data: payload,
637
291
  host
638
292
  }),
@@ -640,20 +294,20 @@ function bulkDeleteCards(payload) {
640
294
  };
641
295
  return metadata;
642
296
  }
643
- return __bulkDeleteCards;
297
+ return __bulkUpdatePipelineTags;
644
298
  }
645
- function bulkUpdateCardTags(payload) {
646
- function __bulkUpdateCardTags({ host }) {
299
+ function bulkUpdatePipelineTagsByFilter(payload) {
300
+ function __bulkUpdatePipelineTagsByFilter({ host }) {
647
301
  const metadata = {
648
- entityFqdn: "wix.crm.pipelines.v1.card",
302
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
649
303
  method: "POST",
650
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkUpdateCardTags",
304
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.BulkUpdatePipelineTagsByFilter",
651
305
  packageName: PACKAGE_NAME,
652
306
  migrationOptions: {
653
307
  optInTransformResponse: true
654
308
  },
655
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
656
- protoPath: "/v1/bulk/cards/update-tags",
309
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
310
+ protoPath: "/v1/bulk/pipelines/update-tags-by-filter",
657
311
  data: payload,
658
312
  host
659
313
  }),
@@ -661,41 +315,12 @@ function bulkUpdateCardTags(payload) {
661
315
  };
662
316
  return metadata;
663
317
  }
664
- return __bulkUpdateCardTags;
665
- }
666
- function bulkUpdateCardTagsByFilter(payload) {
667
- function __bulkUpdateCardTagsByFilter({ host }) {
668
- const metadata = {
669
- entityFqdn: "wix.crm.pipelines.v1.card",
670
- method: "POST",
671
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkUpdateCardTagsByFilter",
672
- packageName: PACKAGE_NAME,
673
- migrationOptions: {
674
- optInTransformResponse: true
675
- },
676
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
677
- protoPath: "/v1/bulk/cards/update-tags-by-filter",
678
- data: payload,
679
- host
680
- }),
681
- data: payload
682
- };
683
- return metadata;
684
- }
685
- return __bulkUpdateCardTagsByFilter;
318
+ return __bulkUpdatePipelineTagsByFilter;
686
319
  }
687
320
 
688
- // src/crm-pipelines-v1-card-pipelines.universal.ts
321
+ // src/crm-pipelines-v1-pipeline-pipelines.universal.ts
689
322
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
690
323
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
691
- var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
692
- var Priority = /* @__PURE__ */ ((Priority2) => {
693
- Priority2["P1_URGENT"] = "P1_URGENT";
694
- Priority2["P2_HIGH"] = "P2_HIGH";
695
- Priority2["P3_MEDIUM"] = "P3_MEDIUM";
696
- Priority2["P4_LOW"] = "P4_LOW";
697
- return Priority2;
698
- })(Priority || {});
699
324
  var Outcome = /* @__PURE__ */ ((Outcome2) => {
700
325
  Outcome2["NONE"] = "NONE";
701
326
  Outcome2["WON"] = "WON";
@@ -707,62 +332,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
707
332
  SortOrder2["DESC"] = "DESC";
708
333
  return SortOrder2;
709
334
  })(SortOrder || {});
710
- var SortType = /* @__PURE__ */ ((SortType2) => {
711
- SortType2["COUNT"] = "COUNT";
712
- SortType2["VALUE"] = "VALUE";
713
- return SortType2;
714
- })(SortType || {});
715
- var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
716
- SortDirection2["DESC"] = "DESC";
717
- SortDirection2["ASC"] = "ASC";
718
- return SortDirection2;
719
- })(SortDirection || {});
720
- var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
721
- MissingValues2["EXCLUDE"] = "EXCLUDE";
722
- MissingValues2["INCLUDE"] = "INCLUDE";
723
- return MissingValues2;
724
- })(MissingValues || {});
725
- var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
726
- ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
727
- ScalarType2["MIN"] = "MIN";
728
- ScalarType2["MAX"] = "MAX";
729
- return ScalarType2;
730
- })(ScalarType || {});
731
- var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
732
- NestedAggregationType2["VALUE"] = "VALUE";
733
- NestedAggregationType2["RANGE"] = "RANGE";
734
- NestedAggregationType2["SCALAR"] = "SCALAR";
735
- NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
736
- return NestedAggregationType2;
737
- })(NestedAggregationType || {});
738
- var Interval = /* @__PURE__ */ ((Interval2) => {
739
- Interval2["YEAR"] = "YEAR";
740
- Interval2["MONTH"] = "MONTH";
741
- Interval2["WEEK"] = "WEEK";
742
- Interval2["DAY"] = "DAY";
743
- Interval2["HOUR"] = "HOUR";
744
- Interval2["MINUTE"] = "MINUTE";
745
- Interval2["SECOND"] = "SECOND";
746
- return Interval2;
747
- })(Interval || {});
748
- var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
749
- AggregationType2["VALUE"] = "VALUE";
750
- AggregationType2["RANGE"] = "RANGE";
751
- AggregationType2["SCALAR"] = "SCALAR";
752
- AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
753
- AggregationType2["NESTED"] = "NESTED";
754
- return AggregationType2;
755
- })(AggregationType || {});
756
- var Mode = /* @__PURE__ */ ((Mode2) => {
757
- Mode2["OR"] = "OR";
758
- Mode2["AND"] = "AND";
759
- return Mode2;
760
- })(Mode || {});
761
- var NameFormat = /* @__PURE__ */ ((NameFormat2) => {
762
- NameFormat2["BY_FIRST_NAME"] = "BY_FIRST_NAME";
763
- NameFormat2["BY_LAST_NAME"] = "BY_LAST_NAME";
764
- return NameFormat2;
765
- })(NameFormat || {});
766
335
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
767
336
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
768
337
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -771,88 +340,85 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
771
340
  WebhookIdentityType2["APP"] = "APP";
772
341
  return WebhookIdentityType2;
773
342
  })(WebhookIdentityType || {});
774
- async function createCard2(options) {
343
+ async function createPipeline2(pipeline) {
775
344
  const { httpClient, sideEffects } = arguments[1];
776
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
777
- card: options?.card
778
- });
779
- const reqOpts = createCard(payload);
345
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ pipeline });
346
+ const reqOpts = createPipeline(payload);
780
347
  sideEffects?.onSiteCall?.();
781
348
  try {
782
349
  const result = await httpClient.request(reqOpts);
783
350
  sideEffects?.onSuccess?.(result);
784
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.card;
351
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.pipeline;
785
352
  } catch (err) {
786
353
  const transformedError = (0, import_transform_error.transformError)(
787
354
  err,
788
355
  {
789
356
  spreadPathsToArguments: {},
790
- explicitPathsToArguments: { card: "$[0].card" },
357
+ explicitPathsToArguments: { pipeline: "$[0]" },
791
358
  singleArgumentUnchanged: false
792
359
  },
793
- ["options"]
360
+ ["pipeline"]
794
361
  );
795
362
  sideEffects?.onError?.(err);
796
363
  throw transformedError;
797
364
  }
798
365
  }
799
- async function getCard2(cardId) {
366
+ async function getPipeline2(pipelineId) {
800
367
  const { httpClient, sideEffects } = arguments[1];
801
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ cardId });
802
- const reqOpts = getCard(payload);
368
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
369
+ pipelineId
370
+ });
371
+ const reqOpts = getPipeline(payload);
803
372
  sideEffects?.onSiteCall?.();
804
373
  try {
805
374
  const result = await httpClient.request(reqOpts);
806
375
  sideEffects?.onSuccess?.(result);
807
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.card;
376
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.pipeline;
808
377
  } catch (err) {
809
378
  const transformedError = (0, import_transform_error.transformError)(
810
379
  err,
811
380
  {
812
381
  spreadPathsToArguments: {},
813
- explicitPathsToArguments: { cardId: "$[0]" },
382
+ explicitPathsToArguments: { pipelineId: "$[0]" },
814
383
  singleArgumentUnchanged: false
815
384
  },
816
- ["cardId"]
385
+ ["pipelineId"]
817
386
  );
818
387
  sideEffects?.onError?.(err);
819
388
  throw transformedError;
820
389
  }
821
390
  }
822
- async function updateCard2(_id, options) {
391
+ async function updatePipeline2(_id, pipeline) {
823
392
  const { httpClient, sideEffects } = arguments[2];
824
393
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
825
- card: { ...options?.card, id: _id }
394
+ pipeline: { ...pipeline, id: _id }
826
395
  });
827
- const reqOpts = updateCard(payload);
396
+ const reqOpts = updatePipeline(payload);
828
397
  sideEffects?.onSiteCall?.();
829
398
  try {
830
399
  const result = await httpClient.request(reqOpts);
831
400
  sideEffects?.onSuccess?.(result);
832
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.card;
401
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.pipeline;
833
402
  } catch (err) {
834
403
  const transformedError = (0, import_transform_error.transformError)(
835
404
  err,
836
405
  {
837
- spreadPathsToArguments: { card: "$[1].card" },
838
- explicitPathsToArguments: { "card.id": "$[0]" },
406
+ spreadPathsToArguments: { pipeline: "$[1]" },
407
+ explicitPathsToArguments: { "pipeline.id": "$[0]" },
839
408
  singleArgumentUnchanged: false
840
409
  },
841
- ["_id", "options"]
410
+ ["_id", "pipeline"]
842
411
  );
843
412
  sideEffects?.onError?.(err);
844
413
  throw transformedError;
845
414
  }
846
415
  }
847
- async function moveCard2(cardId, stageId, options) {
848
- const { httpClient, sideEffects } = arguments[3];
416
+ async function deletePipeline2(pipelineId) {
417
+ const { httpClient, sideEffects } = arguments[1];
849
418
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
850
- cardId,
851
- stageId,
852
- revision: options?.revision,
853
- outcome: options?.outcome
419
+ pipelineId
854
420
  });
855
- const reqOpts = moveCard(payload);
421
+ const reqOpts = deletePipeline(payload);
856
422
  sideEffects?.onSiteCall?.();
857
423
  try {
858
424
  const result = await httpClient.request(reqOpts);
@@ -863,47 +429,20 @@ async function moveCard2(cardId, stageId, options) {
863
429
  err,
864
430
  {
865
431
  spreadPathsToArguments: {},
866
- explicitPathsToArguments: {
867
- cardId: "$[0]",
868
- stageId: "$[1]",
869
- revision: "$[2].revision",
870
- outcome: "$[2].outcome"
871
- },
872
- singleArgumentUnchanged: false
873
- },
874
- ["cardId", "stageId", "options"]
875
- );
876
- sideEffects?.onError?.(err);
877
- throw transformedError;
878
- }
879
- }
880
- async function deleteCard2(cardId) {
881
- const { httpClient, sideEffects } = arguments[1];
882
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ cardId });
883
- const reqOpts = deleteCard(payload);
884
- sideEffects?.onSiteCall?.();
885
- try {
886
- const result = await httpClient.request(reqOpts);
887
- sideEffects?.onSuccess?.(result);
888
- } catch (err) {
889
- const transformedError = (0, import_transform_error.transformError)(
890
- err,
891
- {
892
- spreadPathsToArguments: {},
893
- explicitPathsToArguments: { cardId: "$[0]" },
432
+ explicitPathsToArguments: { pipelineId: "$[0]" },
894
433
  singleArgumentUnchanged: false
895
434
  },
896
- ["cardId"]
435
+ ["pipelineId"]
897
436
  );
898
437
  sideEffects?.onError?.(err);
899
438
  throw transformedError;
900
439
  }
901
440
  }
902
- function queryCards2() {
441
+ function queryPipelines2() {
903
442
  const { httpClient, sideEffects } = arguments[0];
904
443
  return (0, import_query_builder.queryBuilder)({
905
444
  func: async (payload) => {
906
- const reqOpts = queryCards(payload);
445
+ const reqOpts = queryPipelines(payload);
907
446
  sideEffects?.onSiteCall?.();
908
447
  try {
909
448
  const result = await httpClient.request(reqOpts);
@@ -926,7 +465,7 @@ function queryCards2() {
926
465
  (0, import_transform_paths2.transformPaths)(data, [])
927
466
  );
928
467
  return {
929
- items: transformedData?.cards,
468
+ items: transformedData?.pipelines,
930
469
  pagingMetadata: transformedData?.pagingMetadata
931
470
  };
932
471
  },
@@ -942,10 +481,10 @@ function queryCards2() {
942
481
  transformationPaths: {}
943
482
  });
944
483
  }
945
- async function typedQueryCards(query) {
484
+ async function typedQueryPipelines(query) {
946
485
  const { httpClient, sideEffects } = arguments[1];
947
486
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
948
- const reqOpts = queryCards(payload);
487
+ const reqOpts = queryPipelines(payload);
949
488
  sideEffects?.onSiteCall?.();
950
489
  try {
951
490
  const result = await httpClient.request(reqOpts);
@@ -968,163 +507,17 @@ async function typedQueryCards(query) {
968
507
  var utils = {
969
508
  query: {
970
509
  ...(0, import_query_builder_utils.createQueryUtils)()
971
- },
972
- search: {
973
- ...(0, import_search_builder_utils.createSearchUtils)()
974
510
  }
975
511
  };
976
- async function searchCards2(search, options) {
977
- const { httpClient, sideEffects } = arguments[2];
978
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
979
- search,
980
- nameFormat: options?.nameFormat
981
- });
982
- const reqOpts = searchCards(payload);
983
- sideEffects?.onSiteCall?.();
984
- try {
985
- const result = await httpClient.request(reqOpts);
986
- sideEffects?.onSuccess?.(result);
987
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
988
- } catch (err) {
989
- const transformedError = (0, import_transform_error.transformError)(
990
- err,
991
- {
992
- spreadPathsToArguments: {},
993
- explicitPathsToArguments: {
994
- search: "$[0]",
995
- nameFormat: "$[1].nameFormat"
996
- },
997
- singleArgumentUnchanged: false
998
- },
999
- ["search", "options"]
1000
- );
1001
- sideEffects?.onError?.(err);
1002
- throw transformedError;
1003
- }
1004
- }
1005
- async function searchCardsByStage2(pipelineId, options) {
1006
- const { httpClient, sideEffects } = arguments[2];
1007
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1008
- pipelineId,
1009
- stageIds: options?.stageIds,
1010
- search: options?.search,
1011
- nameFormat: options?.nameFormat
1012
- });
1013
- const reqOpts = searchCardsByStage(payload);
1014
- sideEffects?.onSiteCall?.();
1015
- try {
1016
- const result = await httpClient.request(reqOpts);
1017
- sideEffects?.onSuccess?.(result);
1018
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1019
- } catch (err) {
1020
- const transformedError = (0, import_transform_error.transformError)(
1021
- err,
1022
- {
1023
- spreadPathsToArguments: {},
1024
- explicitPathsToArguments: {
1025
- pipelineId: "$[0]",
1026
- stageIds: "$[1].stageIds",
1027
- search: "$[1].search",
1028
- nameFormat: "$[1].nameFormat"
1029
- },
1030
- singleArgumentUnchanged: false
1031
- },
1032
- ["pipelineId", "options"]
1033
- );
1034
- sideEffects?.onError?.(err);
1035
- throw transformedError;
1036
- }
1037
- }
1038
- async function bulkCreateCards2(cards, options) {
1039
- const { httpClient, sideEffects } = arguments[2];
1040
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1041
- cards,
1042
- returnEntity: options?.returnEntity
1043
- });
1044
- const reqOpts = bulkCreateCards(payload);
1045
- sideEffects?.onSiteCall?.();
1046
- try {
1047
- const result = await httpClient.request(reqOpts);
1048
- sideEffects?.onSuccess?.(result);
1049
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1050
- } catch (err) {
1051
- const transformedError = (0, import_transform_error.transformError)(
1052
- err,
1053
- {
1054
- spreadPathsToArguments: {},
1055
- explicitPathsToArguments: {
1056
- cards: "$[0]",
1057
- returnEntity: "$[1].returnEntity"
1058
- },
1059
- singleArgumentUnchanged: false
1060
- },
1061
- ["cards", "options"]
1062
- );
1063
- sideEffects?.onError?.(err);
1064
- throw transformedError;
1065
- }
1066
- }
1067
- async function bulkUpdateCards2(cards, options) {
1068
- const { httpClient, sideEffects } = arguments[2];
1069
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1070
- cards,
1071
- returnEntity: options?.returnEntity
1072
- });
1073
- const reqOpts = bulkUpdateCards(payload);
1074
- sideEffects?.onSiteCall?.();
1075
- try {
1076
- const result = await httpClient.request(reqOpts);
1077
- sideEffects?.onSuccess?.(result);
1078
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1079
- } catch (err) {
1080
- const transformedError = (0, import_transform_error.transformError)(
1081
- err,
1082
- {
1083
- spreadPathsToArguments: {},
1084
- explicitPathsToArguments: {
1085
- cards: "$[0]",
1086
- returnEntity: "$[1].returnEntity"
1087
- },
1088
- singleArgumentUnchanged: false
1089
- },
1090
- ["cards", "options"]
1091
- );
1092
- sideEffects?.onError?.(err);
1093
- throw transformedError;
1094
- }
1095
- }
1096
- async function bulkDeleteCards2(cardIds) {
1097
- const { httpClient, sideEffects } = arguments[1];
1098
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ cardIds });
1099
- const reqOpts = bulkDeleteCards(payload);
1100
- sideEffects?.onSiteCall?.();
1101
- try {
1102
- const result = await httpClient.request(reqOpts);
1103
- sideEffects?.onSuccess?.(result);
1104
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1105
- } catch (err) {
1106
- const transformedError = (0, import_transform_error.transformError)(
1107
- err,
1108
- {
1109
- spreadPathsToArguments: {},
1110
- explicitPathsToArguments: { cardIds: "$[0]" },
1111
- singleArgumentUnchanged: false
1112
- },
1113
- ["cardIds"]
1114
- );
1115
- sideEffects?.onError?.(err);
1116
- throw transformedError;
1117
- }
1118
- }
1119
- async function bulkUpdateCardTags2(cardIds, options) {
512
+ async function bulkUpdatePipelineTags2(pipelineIds, options) {
1120
513
  const { httpClient, sideEffects } = arguments[2];
1121
514
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1122
- cardIds,
515
+ pipelineIds,
1123
516
  assignTags: options?.assignTags,
1124
517
  unassignTags: options?.unassignTags,
1125
518
  returnEntity: options?.returnEntity
1126
519
  });
1127
- const reqOpts = bulkUpdateCardTags(payload);
520
+ const reqOpts = bulkUpdatePipelineTags(payload);
1128
521
  sideEffects?.onSiteCall?.();
1129
522
  try {
1130
523
  const result = await httpClient.request(reqOpts);
@@ -1136,27 +529,28 @@ async function bulkUpdateCardTags2(cardIds, options) {
1136
529
  {
1137
530
  spreadPathsToArguments: {},
1138
531
  explicitPathsToArguments: {
1139
- cardIds: "$[0]",
532
+ pipelineIds: "$[0]",
1140
533
  assignTags: "$[1].assignTags",
1141
534
  unassignTags: "$[1].unassignTags",
1142
535
  returnEntity: "$[1].returnEntity"
1143
536
  },
1144
537
  singleArgumentUnchanged: false
1145
538
  },
1146
- ["cardIds", "options"]
539
+ ["pipelineIds", "options"]
1147
540
  );
1148
541
  sideEffects?.onError?.(err);
1149
542
  throw transformedError;
1150
543
  }
1151
544
  }
1152
- async function bulkUpdateCardTagsByFilter2(filter, options) {
545
+ async function bulkUpdatePipelineTagsByFilter2(filter, options) {
1153
546
  const { httpClient, sideEffects } = arguments[2];
1154
547
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1155
548
  filter,
1156
549
  assignTags: options?.assignTags,
1157
- unassignTags: options?.unassignTags
550
+ unassignTags: options?.unassignTags,
551
+ returnEntity: options?.returnEntity
1158
552
  });
1159
- const reqOpts = bulkUpdateCardTagsByFilter(payload);
553
+ const reqOpts = bulkUpdatePipelineTagsByFilter(payload);
1160
554
  sideEffects?.onSiteCall?.();
1161
555
  try {
1162
556
  const result = await httpClient.request(reqOpts);
@@ -1170,7 +564,8 @@ async function bulkUpdateCardTagsByFilter2(filter, options) {
1170
564
  explicitPathsToArguments: {
1171
565
  filter: "$[0]",
1172
566
  assignTags: "$[1].assignTags",
1173
- unassignTags: "$[1].unassignTags"
567
+ unassignTags: "$[1].unassignTags",
568
+ returnEntity: "$[1].returnEntity"
1174
569
  },
1175
570
  singleArgumentUnchanged: false
1176
571
  },
@@ -1182,33 +577,17 @@ async function bulkUpdateCardTagsByFilter2(filter, options) {
1182
577
  }
1183
578
  // Annotate the CommonJS export names for ESM import in node:
1184
579
  0 && (module.exports = {
1185
- AggregationType,
1186
- Interval,
1187
- MissingValues,
1188
- Mode,
1189
- NameFormat,
1190
- NestedAggregationType,
1191
580
  Outcome,
1192
- Priority,
1193
- ScalarType,
1194
- SortDirection,
1195
581
  SortOrder,
1196
- SortType,
1197
582
  WebhookIdentityType,
1198
- bulkCreateCards,
1199
- bulkDeleteCards,
1200
- bulkUpdateCardTags,
1201
- bulkUpdateCardTagsByFilter,
1202
- bulkUpdateCards,
1203
- createCard,
1204
- deleteCard,
1205
- getCard,
1206
- moveCard,
1207
- queryCards,
1208
- searchCards,
1209
- searchCardsByStage,
1210
- typedQueryCards,
1211
- updateCard,
583
+ bulkUpdatePipelineTags,
584
+ bulkUpdatePipelineTagsByFilter,
585
+ createPipeline,
586
+ deletePipeline,
587
+ getPipeline,
588
+ queryPipelines,
589
+ typedQueryPipelines,
590
+ updatePipeline,
1212
591
  utils
1213
592
  });
1214
593
  //# sourceMappingURL=index.typings.js.map