@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
package/build/es/meta.mjs CHANGED
@@ -1,91 +1,85 @@
1
- // src/crm-pipelines-v1-card-pipelines.http.ts
1
+ // src/crm-pipelines-v1-pipeline-pipelines.http.ts
2
2
  import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
- import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
- import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
3
  import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
4
  import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
5
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
6
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
7
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
- function resolveWixCrmPipelinesCardsV1CardsUrl(opts) {
8
+ function resolveWixCrmPipelinesPipelinesV1PipelinesUrl(opts) {
11
9
  const domainToMappings = {
12
10
  "manage._base_domain_": [
13
11
  {
14
- srcPath: "/_api/cards-app/v1/cards",
15
- destPath: "/v1/cards"
12
+ srcPath: "/_api/pipelines-app/v1/pipelines",
13
+ destPath: "/v1/pipelines"
16
14
  },
17
15
  {
18
- srcPath: "/_api/cards-app/v1/bulk/cards",
19
- destPath: "/v1/bulk/cards"
16
+ srcPath: "/_api/pipelines-app/v1/bulk/pipelines/",
17
+ destPath: "/v1/bulk/pipelines/"
20
18
  },
21
19
  {
22
- srcPath: "/_api/cards/v1/cards",
23
- destPath: "/v1/cards"
20
+ srcPath: "/_api/pipelines/v1/pipelines",
21
+ destPath: "/v1/pipelines"
24
22
  },
25
23
  {
26
- srcPath: "/_api/cards/v1/bulk/cards",
27
- destPath: "/v1/bulk/cards"
24
+ srcPath: "/_api/pipelines/v1/bulk/pipelines",
25
+ destPath: "/v1/bulk/pipelines"
28
26
  }
29
27
  ],
30
28
  _: [
31
29
  {
32
- srcPath: "/_api/cards/v1/cards",
33
- destPath: "/v1/cards"
30
+ srcPath: "/_api/pipelines/v1/pipelines",
31
+ destPath: "/v1/pipelines"
34
32
  },
35
33
  {
36
- srcPath: "/_api/cards/v1/bulk/cards",
37
- destPath: "/v1/bulk/cards"
34
+ srcPath: "/_api/pipelines/v1/bulk/pipelines",
35
+ destPath: "/v1/bulk/pipelines"
38
36
  }
39
37
  ],
40
38
  "*.dev.wix-code.com": [
41
39
  {
42
- srcPath: "/_api/cards/v1/cards",
43
- destPath: "/v1/cards"
40
+ srcPath: "/_api/pipelines/v1/pipelines",
41
+ destPath: "/v1/pipelines"
44
42
  },
45
43
  {
46
- srcPath: "/_api/cards/v1/bulk/cards",
47
- destPath: "/v1/bulk/cards"
44
+ srcPath: "/_api/pipelines/v1/bulk/pipelines",
45
+ destPath: "/v1/bulk/pipelines"
48
46
  }
49
47
  ],
50
48
  "www.wixapis.com": [
51
49
  {
52
- srcPath: "/crm/pipelines/v1/cards",
53
- destPath: "/v1/cards"
50
+ srcPath: "/crm/pipelines/v1/pipelines",
51
+ destPath: "/v1/pipelines"
54
52
  },
55
53
  {
56
- srcPath: "/crm/pipelines/v1/bulk/cards",
57
- destPath: "/v1/bulk/cards"
54
+ srcPath: "/crm/pipelines/v1/bulk/pipelines",
55
+ destPath: "/v1/bulk/pipelines"
58
56
  }
59
57
  ]
60
58
  };
61
59
  return resolveUrl(Object.assign(opts, { domainToMappings }));
62
60
  }
63
61
  var PACKAGE_NAME = "@wix/auto_sdk_crm_pipelines";
64
- function createCard(payload) {
65
- function __createCard({ host }) {
62
+ function createPipeline(payload) {
63
+ function __createPipeline({ host }) {
66
64
  const serializedData = transformPaths(payload, [
67
65
  {
68
66
  transformFn: transformSDKTimestampToRESTTimestamp,
69
67
  paths: [
70
- { path: "card.createdDate" },
71
- { path: "card.updatedDate" },
72
- { path: "card.stageUpdatedDate" },
73
- { path: "card.dueDate" },
74
- { path: "card.staleDate" },
75
- { path: "card.linkedEntities.linkedDate" }
68
+ { path: "pipeline.createdDate" },
69
+ { path: "pipeline.updatedDate" }
76
70
  ]
77
71
  }
78
72
  ]);
79
73
  const metadata = {
80
- entityFqdn: "wix.crm.pipelines.v1.card",
74
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
81
75
  method: "POST",
82
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.CreateCard",
76
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.CreatePipeline",
83
77
  packageName: PACKAGE_NAME,
84
78
  migrationOptions: {
85
79
  optInTransformResponse: true
86
80
  },
87
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
88
- protoPath: "/v1/cards",
81
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
82
+ protoPath: "/v1/pipelines",
89
83
  data: serializedData,
90
84
  host
91
85
  }),
@@ -94,32 +88,28 @@ function createCard(payload) {
94
88
  {
95
89
  transformFn: transformRESTTimestampToSDKTimestamp,
96
90
  paths: [
97
- { path: "card.createdDate" },
98
- { path: "card.updatedDate" },
99
- { path: "card.stageUpdatedDate" },
100
- { path: "card.dueDate" },
101
- { path: "card.staleDate" },
102
- { path: "card.linkedEntities.linkedDate" }
91
+ { path: "pipeline.createdDate" },
92
+ { path: "pipeline.updatedDate" }
103
93
  ]
104
94
  }
105
95
  ])
106
96
  };
107
97
  return metadata;
108
98
  }
109
- return __createCard;
99
+ return __createPipeline;
110
100
  }
111
- function getCard(payload) {
112
- function __getCard({ host }) {
101
+ function getPipeline(payload) {
102
+ function __getPipeline({ host }) {
113
103
  const metadata = {
114
- entityFqdn: "wix.crm.pipelines.v1.card",
104
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
115
105
  method: "GET",
116
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.GetCard",
106
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.GetPipeline",
117
107
  packageName: PACKAGE_NAME,
118
108
  migrationOptions: {
119
109
  optInTransformResponse: true
120
110
  },
121
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
122
- protoPath: "/v1/cards/{cardId}",
111
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
112
+ protoPath: "/v1/pipelines/{pipelineId}",
123
113
  data: payload,
124
114
  host
125
115
  }),
@@ -128,22 +118,18 @@ function getCard(payload) {
128
118
  {
129
119
  transformFn: transformRESTTimestampToSDKTimestamp,
130
120
  paths: [
131
- { path: "card.createdDate" },
132
- { path: "card.updatedDate" },
133
- { path: "card.stageUpdatedDate" },
134
- { path: "card.dueDate" },
135
- { path: "card.staleDate" },
136
- { path: "card.linkedEntities.linkedDate" }
121
+ { path: "pipeline.createdDate" },
122
+ { path: "pipeline.updatedDate" }
137
123
  ]
138
124
  }
139
125
  ])
140
126
  };
141
127
  return metadata;
142
128
  }
143
- return __getCard;
129
+ return __getPipeline;
144
130
  }
145
- function updateCard(payload) {
146
- function __updateCard({ host }) {
131
+ function updatePipeline(payload) {
132
+ function __updatePipeline({ host }) {
147
133
  const serializedData = transformPaths(payload, [
148
134
  {
149
135
  transformFn: transformSDKFieldMaskToRESTFieldMask,
@@ -152,25 +138,21 @@ function updateCard(payload) {
152
138
  {
153
139
  transformFn: transformSDKTimestampToRESTTimestamp,
154
140
  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" }
141
+ { path: "pipeline.createdDate" },
142
+ { path: "pipeline.updatedDate" }
161
143
  ]
162
144
  }
163
145
  ]);
164
146
  const metadata = {
165
- entityFqdn: "wix.crm.pipelines.v1.card",
147
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
166
148
  method: "PATCH",
167
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.UpdateCard",
149
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.UpdatePipeline",
168
150
  packageName: PACKAGE_NAME,
169
151
  migrationOptions: {
170
152
  optInTransformResponse: true
171
153
  },
172
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
173
- protoPath: "/v1/cards/{card.id}",
154
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
155
+ protoPath: "/v1/pipelines/{pipeline.id}",
174
156
  data: serializedData,
175
157
  host
176
158
  }),
@@ -179,66 +161,28 @@ function updateCard(payload) {
179
161
  {
180
162
  transformFn: transformRESTTimestampToSDKTimestamp,
181
163
  paths: [
182
- { path: "card.createdDate" },
183
- { path: "card.updatedDate" },
184
- { path: "card.stageUpdatedDate" },
185
- { path: "card.dueDate" },
186
- { path: "card.staleDate" },
187
- { path: "card.linkedEntities.linkedDate" }
164
+ { path: "pipeline.createdDate" },
165
+ { path: "pipeline.updatedDate" }
188
166
  ]
189
167
  }
190
168
  ])
191
169
  };
192
170
  return metadata;
193
171
  }
194
- return __updateCard;
172
+ return __updatePipeline;
195
173
  }
196
- function moveCard(payload) {
197
- function __moveCard({ host }) {
174
+ function deletePipeline(payload) {
175
+ function __deletePipeline({ host }) {
198
176
  const metadata = {
199
- entityFqdn: "wix.crm.pipelines.v1.card",
200
- method: "PATCH",
201
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.MoveCard",
202
- packageName: PACKAGE_NAME,
203
- migrationOptions: {
204
- optInTransformResponse: true
205
- },
206
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
207
- protoPath: "/v1/cards/move/{cardId}",
208
- data: payload,
209
- host
210
- }),
211
- data: payload,
212
- transformResponse: (payload2) => transformPaths(payload2, [
213
- {
214
- transformFn: transformRESTTimestampToSDKTimestamp,
215
- paths: [
216
- { path: "card.createdDate" },
217
- { path: "card.updatedDate" },
218
- { path: "card.stageUpdatedDate" },
219
- { path: "card.dueDate" },
220
- { path: "card.staleDate" },
221
- { path: "card.linkedEntities.linkedDate" }
222
- ]
223
- }
224
- ])
225
- };
226
- return metadata;
227
- }
228
- return __moveCard;
229
- }
230
- function deleteCard(payload) {
231
- function __deleteCard({ host }) {
232
- const metadata = {
233
- entityFqdn: "wix.crm.pipelines.v1.card",
177
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
234
178
  method: "DELETE",
235
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.DeleteCard",
179
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.DeletePipeline",
236
180
  packageName: PACKAGE_NAME,
237
181
  migrationOptions: {
238
182
  optInTransformResponse: true
239
183
  },
240
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
241
- protoPath: "/v1/cards/{cardId}",
184
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
185
+ protoPath: "/v1/pipelines/{pipelineId}",
242
186
  data: payload,
243
187
  host
244
188
  }),
@@ -246,20 +190,20 @@ function deleteCard(payload) {
246
190
  };
247
191
  return metadata;
248
192
  }
249
- return __deleteCard;
193
+ return __deletePipeline;
250
194
  }
251
- function queryCards(payload) {
252
- function __queryCards({ host }) {
195
+ function queryPipelines(payload) {
196
+ function __queryPipelines({ host }) {
253
197
  const metadata = {
254
- entityFqdn: "wix.crm.pipelines.v1.card",
198
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
255
199
  method: "GET",
256
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.QueryCards",
200
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.QueryPipelines",
257
201
  packageName: PACKAGE_NAME,
258
202
  migrationOptions: {
259
203
  optInTransformResponse: true
260
204
  },
261
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
262
- protoPath: "/v1/cards/query",
205
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
206
+ protoPath: "/v1/pipelines/query",
263
207
  data: payload,
264
208
  host
265
209
  }),
@@ -268,20 +212,16 @@ function queryCards(payload) {
268
212
  {
269
213
  transformFn: transformRESTTimestampToSDKTimestamp,
270
214
  paths: [
271
- { path: "cards.createdDate" },
272
- { path: "cards.updatedDate" },
273
- { path: "cards.stageUpdatedDate" },
274
- { path: "cards.dueDate" },
275
- { path: "cards.staleDate" },
276
- { path: "cards.linkedEntities.linkedDate" }
215
+ { path: "pipelines.createdDate" },
216
+ { path: "pipelines.updatedDate" }
277
217
  ]
278
218
  }
279
219
  ]),
280
220
  fallback: [
281
221
  {
282
222
  method: "POST",
283
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
284
- protoPath: "/v1/cards/query",
223
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
224
+ protoPath: "/v1/pipelines/query",
285
225
  data: payload,
286
226
  host
287
227
  }),
@@ -291,290 +231,20 @@ function queryCards(payload) {
291
231
  };
292
232
  return metadata;
293
233
  }
294
- return __queryCards;
295
- }
296
- function searchCards(payload) {
297
- function __searchCards({ host }) {
298
- const serializedData = transformPaths(payload, [
299
- {
300
- transformFn: transformSDKFloatToRESTFloat,
301
- paths: [
302
- { path: "search.aggregations.range.buckets.from" },
303
- { path: "search.aggregations.range.buckets.to" },
304
- {
305
- path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
306
- },
307
- {
308
- path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
309
- }
310
- ]
311
- }
312
- ]);
313
- const metadata = {
314
- entityFqdn: "wix.crm.pipelines.v1.card",
315
- method: "GET",
316
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.SearchCards",
317
- packageName: PACKAGE_NAME,
318
- migrationOptions: {
319
- optInTransformResponse: true
320
- },
321
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
322
- protoPath: "/v1/cards/search",
323
- data: serializedData,
324
- host
325
- }),
326
- params: toURLSearchParams(serializedData, true),
327
- transformResponse: (payload2) => transformPaths(payload2, [
328
- {
329
- transformFn: transformRESTTimestampToSDKTimestamp,
330
- paths: [
331
- { path: "cards.createdDate" },
332
- { path: "cards.updatedDate" },
333
- { path: "cards.stageUpdatedDate" },
334
- { path: "cards.dueDate" },
335
- { path: "cards.staleDate" },
336
- { path: "cards.linkedEntities.linkedDate" }
337
- ]
338
- },
339
- {
340
- transformFn: transformRESTFloatToSDKFloat,
341
- paths: [
342
- { path: "aggregationData.results.ranges.results.from" },
343
- { path: "aggregationData.results.ranges.results.to" },
344
- {
345
- path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
346
- },
347
- {
348
- path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
349
- },
350
- {
351
- path: "aggregationData.results.nested.results.results.*.range.from"
352
- },
353
- {
354
- path: "aggregationData.results.nested.results.results.*.range.to"
355
- },
356
- { path: "aggregationData.results.scalar.value" },
357
- {
358
- path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
359
- },
360
- {
361
- path: "aggregationData.results.nested.results.results.*.scalar.value"
362
- }
363
- ]
364
- }
365
- ]),
366
- fallback: [
367
- {
368
- method: "POST",
369
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
370
- protoPath: "/v1/cards/search",
371
- data: serializedData,
372
- host
373
- }),
374
- data: serializedData
375
- }
376
- ]
377
- };
378
- return metadata;
379
- }
380
- return __searchCards;
234
+ return __queryPipelines;
381
235
  }
382
- function searchCardsByStage(payload) {
383
- function __searchCardsByStage({ host }) {
384
- const serializedData = transformPaths(payload, [
385
- {
386
- transformFn: transformSDKFloatToRESTFloat,
387
- paths: [
388
- { path: "search.aggregations.range.buckets.from" },
389
- { path: "search.aggregations.range.buckets.to" },
390
- {
391
- path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
392
- },
393
- {
394
- path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
395
- }
396
- ]
397
- }
398
- ]);
236
+ function bulkUpdatePipelineTags(payload) {
237
+ function __bulkUpdatePipelineTags({ host }) {
399
238
  const metadata = {
400
- entityFqdn: "wix.crm.pipelines.v1.card",
401
- method: "GET",
402
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.SearchCardsByStage",
403
- packageName: PACKAGE_NAME,
404
- migrationOptions: {
405
- optInTransformResponse: true
406
- },
407
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
408
- protoPath: "/v1/cards/search-by-stage",
409
- data: serializedData,
410
- host
411
- }),
412
- params: toURLSearchParams(serializedData, true),
413
- transformResponse: (payload2) => transformPaths(payload2, [
414
- {
415
- transformFn: transformRESTTimestampToSDKTimestamp,
416
- paths: [
417
- { path: "results.cards.createdDate" },
418
- { path: "results.cards.updatedDate" },
419
- { path: "results.cards.stageUpdatedDate" },
420
- { path: "results.cards.dueDate" },
421
- { path: "results.cards.staleDate" },
422
- { path: "results.cards.linkedEntities.linkedDate" }
423
- ]
424
- },
425
- {
426
- transformFn: transformRESTFloatToSDKFloat,
427
- paths: [
428
- { path: "results.aggregationData.results.ranges.results.from" },
429
- { path: "results.aggregationData.results.ranges.results.to" },
430
- {
431
- path: "results.aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
432
- },
433
- {
434
- path: "results.aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
435
- },
436
- {
437
- path: "results.aggregationData.results.nested.results.results.*.range.from"
438
- },
439
- {
440
- path: "results.aggregationData.results.nested.results.results.*.range.to"
441
- },
442
- { path: "results.aggregationData.results.scalar.value" },
443
- {
444
- path: "results.aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
445
- },
446
- {
447
- path: "results.aggregationData.results.nested.results.results.*.scalar.value"
448
- }
449
- ]
450
- }
451
- ]),
452
- fallback: [
453
- {
454
- method: "POST",
455
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
456
- protoPath: "/v1/cards/search-by-stage",
457
- data: serializedData,
458
- host
459
- }),
460
- data: serializedData
461
- }
462
- ]
463
- };
464
- return metadata;
465
- }
466
- return __searchCardsByStage;
467
- }
468
- function bulkCreateCards(payload) {
469
- function __bulkCreateCards({ host }) {
470
- const serializedData = transformPaths(payload, [
471
- {
472
- transformFn: transformSDKTimestampToRESTTimestamp,
473
- paths: [
474
- { path: "cards.createdDate" },
475
- { path: "cards.updatedDate" },
476
- { path: "cards.stageUpdatedDate" },
477
- { path: "cards.dueDate" },
478
- { path: "cards.staleDate" },
479
- { path: "cards.linkedEntities.linkedDate" }
480
- ]
481
- }
482
- ]);
483
- const metadata = {
484
- entityFqdn: "wix.crm.pipelines.v1.card",
239
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
485
240
  method: "POST",
486
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkCreateCards",
241
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.BulkUpdatePipelineTags",
487
242
  packageName: PACKAGE_NAME,
488
243
  migrationOptions: {
489
244
  optInTransformResponse: true
490
245
  },
491
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
492
- protoPath: "/v1/bulk/cards/create",
493
- data: serializedData,
494
- host
495
- }),
496
- data: serializedData,
497
- transformResponse: (payload2) => transformPaths(payload2, [
498
- {
499
- transformFn: transformRESTTimestampToSDKTimestamp,
500
- paths: [
501
- { path: "results.item.createdDate" },
502
- { path: "results.item.updatedDate" },
503
- { path: "results.item.stageUpdatedDate" },
504
- { path: "results.item.dueDate" },
505
- { path: "results.item.staleDate" },
506
- { path: "results.item.linkedEntities.linkedDate" }
507
- ]
508
- }
509
- ])
510
- };
511
- return metadata;
512
- }
513
- return __bulkCreateCards;
514
- }
515
- function bulkUpdateCards(payload) {
516
- function __bulkUpdateCards({ host }) {
517
- const serializedData = transformPaths(payload, [
518
- {
519
- transformFn: transformSDKFieldMaskToRESTFieldMask,
520
- paths: [{ path: "cards.fieldMask" }]
521
- },
522
- {
523
- transformFn: transformSDKTimestampToRESTTimestamp,
524
- paths: [
525
- { path: "cards.card.createdDate" },
526
- { path: "cards.card.updatedDate" },
527
- { path: "cards.card.stageUpdatedDate" },
528
- { path: "cards.card.dueDate" },
529
- { path: "cards.card.staleDate" },
530
- { path: "cards.card.linkedEntities.linkedDate" }
531
- ]
532
- }
533
- ]);
534
- const metadata = {
535
- entityFqdn: "wix.crm.pipelines.v1.card",
536
- method: "POST",
537
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkUpdateCards",
538
- packageName: PACKAGE_NAME,
539
- migrationOptions: {
540
- optInTransformResponse: true
541
- },
542
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
543
- protoPath: "/v1/bulk/cards/update",
544
- data: serializedData,
545
- host
546
- }),
547
- data: serializedData,
548
- transformResponse: (payload2) => transformPaths(payload2, [
549
- {
550
- transformFn: transformRESTTimestampToSDKTimestamp,
551
- paths: [
552
- { path: "results.item.createdDate" },
553
- { path: "results.item.updatedDate" },
554
- { path: "results.item.stageUpdatedDate" },
555
- { path: "results.item.dueDate" },
556
- { path: "results.item.staleDate" },
557
- { path: "results.item.linkedEntities.linkedDate" }
558
- ]
559
- }
560
- ])
561
- };
562
- return metadata;
563
- }
564
- return __bulkUpdateCards;
565
- }
566
- function bulkDeleteCards(payload) {
567
- function __bulkDeleteCards({ host }) {
568
- const metadata = {
569
- entityFqdn: "wix.crm.pipelines.v1.card",
570
- method: "POST",
571
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkDeleteCards",
572
- packageName: PACKAGE_NAME,
573
- migrationOptions: {
574
- optInTransformResponse: true
575
- },
576
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
577
- protoPath: "/v1/bulk/cards/delete",
246
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
247
+ protoPath: "/v1/bulk/pipelines/update-tags",
578
248
  data: payload,
579
249
  host
580
250
  }),
@@ -582,20 +252,20 @@ function bulkDeleteCards(payload) {
582
252
  };
583
253
  return metadata;
584
254
  }
585
- return __bulkDeleteCards;
255
+ return __bulkUpdatePipelineTags;
586
256
  }
587
- function bulkUpdateCardTags(payload) {
588
- function __bulkUpdateCardTags({ host }) {
257
+ function bulkUpdatePipelineTagsByFilter(payload) {
258
+ function __bulkUpdatePipelineTagsByFilter({ host }) {
589
259
  const metadata = {
590
- entityFqdn: "wix.crm.pipelines.v1.card",
260
+ entityFqdn: "wix.crm.pipelines.v1.pipeline",
591
261
  method: "POST",
592
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkUpdateCardTags",
262
+ methodFqn: "wix.crm.pipelines.pipelines.v1.Pipelines.BulkUpdatePipelineTagsByFilter",
593
263
  packageName: PACKAGE_NAME,
594
264
  migrationOptions: {
595
265
  optInTransformResponse: true
596
266
  },
597
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
598
- protoPath: "/v1/bulk/cards/update-tags",
267
+ url: resolveWixCrmPipelinesPipelinesV1PipelinesUrl({
268
+ protoPath: "/v1/bulk/pipelines/update-tags-by-filter",
599
269
  data: payload,
600
270
  host
601
271
  }),
@@ -603,38 +273,10 @@ function bulkUpdateCardTags(payload) {
603
273
  };
604
274
  return metadata;
605
275
  }
606
- return __bulkUpdateCardTags;
607
- }
608
- function bulkUpdateCardTagsByFilter(payload) {
609
- function __bulkUpdateCardTagsByFilter({ host }) {
610
- const metadata = {
611
- entityFqdn: "wix.crm.pipelines.v1.card",
612
- method: "POST",
613
- methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkUpdateCardTagsByFilter",
614
- packageName: PACKAGE_NAME,
615
- migrationOptions: {
616
- optInTransformResponse: true
617
- },
618
- url: resolveWixCrmPipelinesCardsV1CardsUrl({
619
- protoPath: "/v1/bulk/cards/update-tags-by-filter",
620
- data: payload,
621
- host
622
- }),
623
- data: payload
624
- };
625
- return metadata;
626
- }
627
- return __bulkUpdateCardTagsByFilter;
276
+ return __bulkUpdatePipelineTagsByFilter;
628
277
  }
629
278
 
630
- // src/crm-pipelines-v1-card-pipelines.types.ts
631
- var Priority = /* @__PURE__ */ ((Priority2) => {
632
- Priority2["P1_URGENT"] = "P1_URGENT";
633
- Priority2["P2_HIGH"] = "P2_HIGH";
634
- Priority2["P3_MEDIUM"] = "P3_MEDIUM";
635
- Priority2["P4_LOW"] = "P4_LOW";
636
- return Priority2;
637
- })(Priority || {});
279
+ // src/crm-pipelines-v1-pipeline-pipelines.types.ts
638
280
  var Outcome = /* @__PURE__ */ ((Outcome2) => {
639
281
  Outcome2["NONE"] = "NONE";
640
282
  Outcome2["WON"] = "WON";
@@ -646,62 +288,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
646
288
  SortOrder2["DESC"] = "DESC";
647
289
  return SortOrder2;
648
290
  })(SortOrder || {});
649
- var SortType = /* @__PURE__ */ ((SortType2) => {
650
- SortType2["COUNT"] = "COUNT";
651
- SortType2["VALUE"] = "VALUE";
652
- return SortType2;
653
- })(SortType || {});
654
- var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
655
- SortDirection2["DESC"] = "DESC";
656
- SortDirection2["ASC"] = "ASC";
657
- return SortDirection2;
658
- })(SortDirection || {});
659
- var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
660
- MissingValues2["EXCLUDE"] = "EXCLUDE";
661
- MissingValues2["INCLUDE"] = "INCLUDE";
662
- return MissingValues2;
663
- })(MissingValues || {});
664
- var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
665
- ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
666
- ScalarType2["MIN"] = "MIN";
667
- ScalarType2["MAX"] = "MAX";
668
- return ScalarType2;
669
- })(ScalarType || {});
670
- var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
671
- NestedAggregationType2["VALUE"] = "VALUE";
672
- NestedAggregationType2["RANGE"] = "RANGE";
673
- NestedAggregationType2["SCALAR"] = "SCALAR";
674
- NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
675
- return NestedAggregationType2;
676
- })(NestedAggregationType || {});
677
- var Interval = /* @__PURE__ */ ((Interval2) => {
678
- Interval2["YEAR"] = "YEAR";
679
- Interval2["MONTH"] = "MONTH";
680
- Interval2["WEEK"] = "WEEK";
681
- Interval2["DAY"] = "DAY";
682
- Interval2["HOUR"] = "HOUR";
683
- Interval2["MINUTE"] = "MINUTE";
684
- Interval2["SECOND"] = "SECOND";
685
- return Interval2;
686
- })(Interval || {});
687
- var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
688
- AggregationType2["VALUE"] = "VALUE";
689
- AggregationType2["RANGE"] = "RANGE";
690
- AggregationType2["SCALAR"] = "SCALAR";
691
- AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
692
- AggregationType2["NESTED"] = "NESTED";
693
- return AggregationType2;
694
- })(AggregationType || {});
695
- var Mode = /* @__PURE__ */ ((Mode2) => {
696
- Mode2["OR"] = "OR";
697
- Mode2["AND"] = "AND";
698
- return Mode2;
699
- })(Mode || {});
700
- var NameFormat = /* @__PURE__ */ ((NameFormat2) => {
701
- NameFormat2["BY_FIRST_NAME"] = "BY_FIRST_NAME";
702
- NameFormat2["BY_LAST_NAME"] = "BY_LAST_NAME";
703
- return NameFormat2;
704
- })(NameFormat || {});
705
291
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
706
292
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
707
293
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -711,10 +297,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
711
297
  return WebhookIdentityType2;
712
298
  })(WebhookIdentityType || {});
713
299
 
714
- // src/crm-pipelines-v1-card-pipelines.meta.ts
715
- function createCard2() {
300
+ // src/crm-pipelines-v1-pipeline-pipelines.meta.ts
301
+ function createPipeline2() {
716
302
  const payload = {};
717
- const getRequestOptions = createCard(payload);
303
+ const getRequestOptions = createPipeline(payload);
718
304
  const getUrl = (context) => {
719
305
  const { url } = getRequestOptions(context);
720
306
  return url;
@@ -722,7 +308,7 @@ function createCard2() {
722
308
  return {
723
309
  getUrl,
724
310
  httpMethod: "POST",
725
- path: "/v1/cards",
311
+ path: "/v1/pipelines",
726
312
  pathParams: {},
727
313
  __requestType: null,
728
314
  __originalRequestType: null,
@@ -730,9 +316,9 @@ function createCard2() {
730
316
  __originalResponseType: null
731
317
  };
732
318
  }
733
- function getCard2() {
734
- const payload = { cardId: ":cardId" };
735
- const getRequestOptions = getCard(payload);
319
+ function getPipeline2() {
320
+ const payload = { pipelineId: ":pipelineId" };
321
+ const getRequestOptions = getPipeline(payload);
736
322
  const getUrl = (context) => {
737
323
  const { url } = getRequestOptions(context);
738
324
  return url;
@@ -740,17 +326,17 @@ function getCard2() {
740
326
  return {
741
327
  getUrl,
742
328
  httpMethod: "GET",
743
- path: "/v1/cards/{cardId}",
744
- pathParams: { cardId: "cardId" },
329
+ path: "/v1/pipelines/{pipelineId}",
330
+ pathParams: { pipelineId: "pipelineId" },
745
331
  __requestType: null,
746
332
  __originalRequestType: null,
747
333
  __responseType: null,
748
334
  __originalResponseType: null
749
335
  };
750
336
  }
751
- function updateCard2() {
752
- const payload = { card: { id: ":cardId" } };
753
- const getRequestOptions = updateCard(payload);
337
+ function updatePipeline2() {
338
+ const payload = { pipeline: { id: ":pipelineId" } };
339
+ const getRequestOptions = updatePipeline(payload);
754
340
  const getUrl = (context) => {
755
341
  const { url } = getRequestOptions(context);
756
342
  return url;
@@ -758,35 +344,17 @@ function updateCard2() {
758
344
  return {
759
345
  getUrl,
760
346
  httpMethod: "PATCH",
761
- path: "/v1/cards/{card.id}",
762
- pathParams: { cardId: "cardId" },
347
+ path: "/v1/pipelines/{pipeline.id}",
348
+ pathParams: { pipelineId: "pipelineId" },
763
349
  __requestType: null,
764
350
  __originalRequestType: null,
765
351
  __responseType: null,
766
352
  __originalResponseType: null
767
353
  };
768
354
  }
769
- function moveCard2() {
770
- const payload = { cardId: ":cardId" };
771
- const getRequestOptions = moveCard(payload);
772
- const getUrl = (context) => {
773
- const { url } = getRequestOptions(context);
774
- return url;
775
- };
776
- return {
777
- getUrl,
778
- httpMethod: "PATCH",
779
- path: "/v1/cards/move/{cardId}",
780
- pathParams: { cardId: "cardId" },
781
- __requestType: null,
782
- __originalRequestType: null,
783
- __responseType: null,
784
- __originalResponseType: null
785
- };
786
- }
787
- function deleteCard2() {
788
- const payload = { cardId: ":cardId" };
789
- const getRequestOptions = deleteCard(payload);
355
+ function deletePipeline2() {
356
+ const payload = { pipelineId: ":pipelineId" };
357
+ const getRequestOptions = deletePipeline(payload);
790
358
  const getUrl = (context) => {
791
359
  const { url } = getRequestOptions(context);
792
360
  return url;
@@ -794,53 +362,17 @@ function deleteCard2() {
794
362
  return {
795
363
  getUrl,
796
364
  httpMethod: "DELETE",
797
- path: "/v1/cards/{cardId}",
798
- pathParams: { cardId: "cardId" },
799
- __requestType: null,
800
- __originalRequestType: null,
801
- __responseType: null,
802
- __originalResponseType: null
803
- };
804
- }
805
- function queryCards2() {
806
- const payload = {};
807
- const getRequestOptions = queryCards(payload);
808
- const getUrl = (context) => {
809
- const { url } = getRequestOptions(context);
810
- return url;
811
- };
812
- return {
813
- getUrl,
814
- httpMethod: "GET",
815
- path: "/v1/cards/query",
816
- pathParams: {},
817
- __requestType: null,
818
- __originalRequestType: null,
819
- __responseType: null,
820
- __originalResponseType: null
821
- };
822
- }
823
- function searchCards2() {
824
- const payload = {};
825
- const getRequestOptions = searchCards(payload);
826
- const getUrl = (context) => {
827
- const { url } = getRequestOptions(context);
828
- return url;
829
- };
830
- return {
831
- getUrl,
832
- httpMethod: "GET",
833
- path: "/v1/cards/search",
834
- pathParams: {},
365
+ path: "/v1/pipelines/{pipelineId}",
366
+ pathParams: { pipelineId: "pipelineId" },
835
367
  __requestType: null,
836
368
  __originalRequestType: null,
837
369
  __responseType: null,
838
370
  __originalResponseType: null
839
371
  };
840
372
  }
841
- function searchCardsByStage2() {
373
+ function queryPipelines2() {
842
374
  const payload = {};
843
- const getRequestOptions = searchCardsByStage(payload);
375
+ const getRequestOptions = queryPipelines(payload);
844
376
  const getUrl = (context) => {
845
377
  const { url } = getRequestOptions(context);
846
378
  return url;
@@ -848,61 +380,7 @@ function searchCardsByStage2() {
848
380
  return {
849
381
  getUrl,
850
382
  httpMethod: "GET",
851
- path: "/v1/cards/search-by-stage",
852
- pathParams: {},
853
- __requestType: null,
854
- __originalRequestType: null,
855
- __responseType: null,
856
- __originalResponseType: null
857
- };
858
- }
859
- function bulkCreateCards2() {
860
- const payload = {};
861
- const getRequestOptions = bulkCreateCards(payload);
862
- const getUrl = (context) => {
863
- const { url } = getRequestOptions(context);
864
- return url;
865
- };
866
- return {
867
- getUrl,
868
- httpMethod: "POST",
869
- path: "/v1/bulk/cards/create",
870
- pathParams: {},
871
- __requestType: null,
872
- __originalRequestType: null,
873
- __responseType: null,
874
- __originalResponseType: null
875
- };
876
- }
877
- function bulkUpdateCards2() {
878
- const payload = {};
879
- const getRequestOptions = bulkUpdateCards(payload);
880
- const getUrl = (context) => {
881
- const { url } = getRequestOptions(context);
882
- return url;
883
- };
884
- return {
885
- getUrl,
886
- httpMethod: "POST",
887
- path: "/v1/bulk/cards/update",
888
- pathParams: {},
889
- __requestType: null,
890
- __originalRequestType: null,
891
- __responseType: null,
892
- __originalResponseType: null
893
- };
894
- }
895
- function bulkDeleteCards2() {
896
- const payload = {};
897
- const getRequestOptions = bulkDeleteCards(payload);
898
- const getUrl = (context) => {
899
- const { url } = getRequestOptions(context);
900
- return url;
901
- };
902
- return {
903
- getUrl,
904
- httpMethod: "POST",
905
- path: "/v1/bulk/cards/delete",
383
+ path: "/v1/pipelines/query",
906
384
  pathParams: {},
907
385
  __requestType: null,
908
386
  __originalRequestType: null,
@@ -910,9 +388,9 @@ function bulkDeleteCards2() {
910
388
  __originalResponseType: null
911
389
  };
912
390
  }
913
- function bulkUpdateCardTags2() {
391
+ function bulkUpdatePipelineTags2() {
914
392
  const payload = {};
915
- const getRequestOptions = bulkUpdateCardTags(payload);
393
+ const getRequestOptions = bulkUpdatePipelineTags(payload);
916
394
  const getUrl = (context) => {
917
395
  const { url } = getRequestOptions(context);
918
396
  return url;
@@ -920,7 +398,7 @@ function bulkUpdateCardTags2() {
920
398
  return {
921
399
  getUrl,
922
400
  httpMethod: "POST",
923
- path: "/v1/bulk/cards/update-tags",
401
+ path: "/v1/bulk/pipelines/update-tags",
924
402
  pathParams: {},
925
403
  __requestType: null,
926
404
  __originalRequestType: null,
@@ -928,9 +406,9 @@ function bulkUpdateCardTags2() {
928
406
  __originalResponseType: null
929
407
  };
930
408
  }
931
- function bulkUpdateCardTagsByFilter2() {
409
+ function bulkUpdatePipelineTagsByFilter2() {
932
410
  const payload = {};
933
- const getRequestOptions = bulkUpdateCardTagsByFilter(payload);
411
+ const getRequestOptions = bulkUpdatePipelineTagsByFilter(payload);
934
412
  const getUrl = (context) => {
935
413
  const { url } = getRequestOptions(context);
936
414
  return url;
@@ -938,7 +416,7 @@ function bulkUpdateCardTagsByFilter2() {
938
416
  return {
939
417
  getUrl,
940
418
  httpMethod: "POST",
941
- path: "/v1/bulk/cards/update-tags-by-filter",
419
+ path: "/v1/bulk/pipelines/update-tags-by-filter",
942
420
  pathParams: {},
943
421
  __requestType: null,
944
422
  __originalRequestType: null,
@@ -947,31 +425,15 @@ function bulkUpdateCardTagsByFilter2() {
947
425
  };
948
426
  }
949
427
  export {
950
- AggregationType as AggregationTypeOriginal,
951
- Interval as IntervalOriginal,
952
- MissingValues as MissingValuesOriginal,
953
- Mode as ModeOriginal,
954
- NameFormat as NameFormatOriginal,
955
- NestedAggregationType as NestedAggregationTypeOriginal,
956
428
  Outcome as OutcomeOriginal,
957
- Priority as PriorityOriginal,
958
- ScalarType as ScalarTypeOriginal,
959
- SortDirection as SortDirectionOriginal,
960
429
  SortOrder as SortOrderOriginal,
961
- SortType as SortTypeOriginal,
962
430
  WebhookIdentityType as WebhookIdentityTypeOriginal,
963
- bulkCreateCards2 as bulkCreateCards,
964
- bulkDeleteCards2 as bulkDeleteCards,
965
- bulkUpdateCardTags2 as bulkUpdateCardTags,
966
- bulkUpdateCardTagsByFilter2 as bulkUpdateCardTagsByFilter,
967
- bulkUpdateCards2 as bulkUpdateCards,
968
- createCard2 as createCard,
969
- deleteCard2 as deleteCard,
970
- getCard2 as getCard,
971
- moveCard2 as moveCard,
972
- queryCards2 as queryCards,
973
- searchCards2 as searchCards,
974
- searchCardsByStage2 as searchCardsByStage,
975
- updateCard2 as updateCard
431
+ bulkUpdatePipelineTags2 as bulkUpdatePipelineTags,
432
+ bulkUpdatePipelineTagsByFilter2 as bulkUpdatePipelineTagsByFilter,
433
+ createPipeline2 as createPipeline,
434
+ deletePipeline2 as deletePipeline,
435
+ getPipeline2 as getPipeline,
436
+ queryPipelines2 as queryPipelines,
437
+ updatePipeline2 as updatePipeline
976
438
  };
977
439
  //# sourceMappingURL=meta.mjs.map