@wix/auto_sdk_crm_pipelines 1.0.0

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 (43) hide show
  1. package/build/cjs/crm-pipelines-v1-card-pipelines.universal-DGtqU_Zb.d.ts +2265 -0
  2. package/build/cjs/index.d.ts +169 -0
  3. package/build/cjs/index.js +1522 -0
  4. package/build/cjs/index.js.map +1 -0
  5. package/build/cjs/index.typings.d.ts +25 -0
  6. package/build/cjs/index.typings.js +1214 -0
  7. package/build/cjs/index.typings.js.map +1 -0
  8. package/build/cjs/meta.d.ts +1444 -0
  9. package/build/cjs/meta.js +1029 -0
  10. package/build/cjs/meta.js.map +1 -0
  11. package/build/es/crm-pipelines-v1-card-pipelines.universal-DGtqU_Zb.d.mts +2265 -0
  12. package/build/es/index.d.mts +169 -0
  13. package/build/es/index.mjs +1465 -0
  14. package/build/es/index.mjs.map +1 -0
  15. package/build/es/index.typings.d.mts +25 -0
  16. package/build/es/index.typings.mjs +1163 -0
  17. package/build/es/index.typings.mjs.map +1 -0
  18. package/build/es/meta.d.mts +1444 -0
  19. package/build/es/meta.mjs +977 -0
  20. package/build/es/meta.mjs.map +1 -0
  21. package/build/es/package.json +3 -0
  22. package/build/internal/cjs/crm-pipelines-v1-card-pipelines.universal-BHszxzqA.d.ts +2303 -0
  23. package/build/internal/cjs/index.d.ts +202 -0
  24. package/build/internal/cjs/index.js +1522 -0
  25. package/build/internal/cjs/index.js.map +1 -0
  26. package/build/internal/cjs/index.typings.d.ts +25 -0
  27. package/build/internal/cjs/index.typings.js +1214 -0
  28. package/build/internal/cjs/index.typings.js.map +1 -0
  29. package/build/internal/cjs/meta.d.ts +1444 -0
  30. package/build/internal/cjs/meta.js +1029 -0
  31. package/build/internal/cjs/meta.js.map +1 -0
  32. package/build/internal/es/crm-pipelines-v1-card-pipelines.universal-BHszxzqA.d.mts +2303 -0
  33. package/build/internal/es/index.d.mts +202 -0
  34. package/build/internal/es/index.mjs +1465 -0
  35. package/build/internal/es/index.mjs.map +1 -0
  36. package/build/internal/es/index.typings.d.mts +25 -0
  37. package/build/internal/es/index.typings.mjs +1163 -0
  38. package/build/internal/es/index.typings.mjs.map +1 -0
  39. package/build/internal/es/meta.d.mts +1444 -0
  40. package/build/internal/es/meta.mjs +977 -0
  41. package/build/internal/es/meta.mjs.map +1 -0
  42. package/meta/package.json +3 -0
  43. package/package.json +54 -0
@@ -0,0 +1,977 @@
1
+ // src/crm-pipelines-v1-card-pipelines.http.ts
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
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
+ function resolveWixCrmPipelinesCardsV1CardsUrl(opts) {
11
+ const domainToMappings = {
12
+ "manage._base_domain_": [
13
+ {
14
+ srcPath: "/_api/cards-app/v1/cards",
15
+ destPath: "/v1/cards"
16
+ },
17
+ {
18
+ srcPath: "/_api/cards-app/v1/bulk/cards",
19
+ destPath: "/v1/bulk/cards"
20
+ },
21
+ {
22
+ srcPath: "/_api/cards/v1/cards",
23
+ destPath: "/v1/cards"
24
+ },
25
+ {
26
+ srcPath: "/_api/cards/v1/bulk/cards",
27
+ destPath: "/v1/bulk/cards"
28
+ }
29
+ ],
30
+ _: [
31
+ {
32
+ srcPath: "/_api/cards/v1/cards",
33
+ destPath: "/v1/cards"
34
+ },
35
+ {
36
+ srcPath: "/_api/cards/v1/bulk/cards",
37
+ destPath: "/v1/bulk/cards"
38
+ }
39
+ ],
40
+ "*.dev.wix-code.com": [
41
+ {
42
+ srcPath: "/_api/cards/v1/cards",
43
+ destPath: "/v1/cards"
44
+ },
45
+ {
46
+ srcPath: "/_api/cards/v1/bulk/cards",
47
+ destPath: "/v1/bulk/cards"
48
+ }
49
+ ],
50
+ "www.wixapis.com": [
51
+ {
52
+ srcPath: "/crm/pipelines/v1/cards",
53
+ destPath: "/v1/cards"
54
+ },
55
+ {
56
+ srcPath: "/crm/pipelines/v1/bulk/cards",
57
+ destPath: "/v1/bulk/cards"
58
+ }
59
+ ]
60
+ };
61
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
62
+ }
63
+ var PACKAGE_NAME = "@wix/auto_sdk_crm_pipelines";
64
+ function createCard(payload) {
65
+ function __createCard({ host }) {
66
+ const serializedData = transformPaths(payload, [
67
+ {
68
+ transformFn: transformSDKTimestampToRESTTimestamp,
69
+ 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" }
76
+ ]
77
+ }
78
+ ]);
79
+ const metadata = {
80
+ entityFqdn: "wix.crm.pipelines.v1.card",
81
+ method: "POST",
82
+ methodFqn: "wix.crm.pipelines.cards.v1.Cards.CreateCard",
83
+ packageName: PACKAGE_NAME,
84
+ migrationOptions: {
85
+ optInTransformResponse: true
86
+ },
87
+ url: resolveWixCrmPipelinesCardsV1CardsUrl({
88
+ protoPath: "/v1/cards",
89
+ data: serializedData,
90
+ host
91
+ }),
92
+ data: serializedData,
93
+ transformResponse: (payload2) => transformPaths(payload2, [
94
+ {
95
+ transformFn: transformRESTTimestampToSDKTimestamp,
96
+ 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" }
103
+ ]
104
+ }
105
+ ])
106
+ };
107
+ return metadata;
108
+ }
109
+ return __createCard;
110
+ }
111
+ function getCard(payload) {
112
+ function __getCard({ host }) {
113
+ const metadata = {
114
+ entityFqdn: "wix.crm.pipelines.v1.card",
115
+ method: "GET",
116
+ methodFqn: "wix.crm.pipelines.cards.v1.Cards.GetCard",
117
+ packageName: PACKAGE_NAME,
118
+ migrationOptions: {
119
+ optInTransformResponse: true
120
+ },
121
+ url: resolveWixCrmPipelinesCardsV1CardsUrl({
122
+ protoPath: "/v1/cards/{cardId}",
123
+ data: payload,
124
+ host
125
+ }),
126
+ params: toURLSearchParams(payload),
127
+ transformResponse: (payload2) => transformPaths(payload2, [
128
+ {
129
+ transformFn: transformRESTTimestampToSDKTimestamp,
130
+ 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" }
137
+ ]
138
+ }
139
+ ])
140
+ };
141
+ return metadata;
142
+ }
143
+ return __getCard;
144
+ }
145
+ function updateCard(payload) {
146
+ function __updateCard({ host }) {
147
+ const serializedData = transformPaths(payload, [
148
+ {
149
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
150
+ paths: [{ path: "fieldMask" }]
151
+ },
152
+ {
153
+ transformFn: transformSDKTimestampToRESTTimestamp,
154
+ 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" }
161
+ ]
162
+ }
163
+ ]);
164
+ const metadata = {
165
+ entityFqdn: "wix.crm.pipelines.v1.card",
166
+ method: "PATCH",
167
+ methodFqn: "wix.crm.pipelines.cards.v1.Cards.UpdateCard",
168
+ packageName: PACKAGE_NAME,
169
+ migrationOptions: {
170
+ optInTransformResponse: true
171
+ },
172
+ url: resolveWixCrmPipelinesCardsV1CardsUrl({
173
+ protoPath: "/v1/cards/{card.id}",
174
+ data: serializedData,
175
+ host
176
+ }),
177
+ data: serializedData,
178
+ transformResponse: (payload2) => transformPaths(payload2, [
179
+ {
180
+ transformFn: transformRESTTimestampToSDKTimestamp,
181
+ 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" }
188
+ ]
189
+ }
190
+ ])
191
+ };
192
+ return metadata;
193
+ }
194
+ return __updateCard;
195
+ }
196
+ function moveCard(payload) {
197
+ function __moveCard({ host }) {
198
+ 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",
234
+ method: "DELETE",
235
+ methodFqn: "wix.crm.pipelines.cards.v1.Cards.DeleteCard",
236
+ packageName: PACKAGE_NAME,
237
+ migrationOptions: {
238
+ optInTransformResponse: true
239
+ },
240
+ url: resolveWixCrmPipelinesCardsV1CardsUrl({
241
+ protoPath: "/v1/cards/{cardId}",
242
+ data: payload,
243
+ host
244
+ }),
245
+ params: toURLSearchParams(payload)
246
+ };
247
+ return metadata;
248
+ }
249
+ return __deleteCard;
250
+ }
251
+ function queryCards(payload) {
252
+ function __queryCards({ host }) {
253
+ const metadata = {
254
+ entityFqdn: "wix.crm.pipelines.v1.card",
255
+ method: "GET",
256
+ methodFqn: "wix.crm.pipelines.cards.v1.Cards.QueryCards",
257
+ packageName: PACKAGE_NAME,
258
+ migrationOptions: {
259
+ optInTransformResponse: true
260
+ },
261
+ url: resolveWixCrmPipelinesCardsV1CardsUrl({
262
+ protoPath: "/v1/cards/query",
263
+ data: payload,
264
+ host
265
+ }),
266
+ params: toURLSearchParams(payload, true),
267
+ transformResponse: (payload2) => transformPaths(payload2, [
268
+ {
269
+ transformFn: transformRESTTimestampToSDKTimestamp,
270
+ 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" }
277
+ ]
278
+ }
279
+ ]),
280
+ fallback: [
281
+ {
282
+ method: "POST",
283
+ url: resolveWixCrmPipelinesCardsV1CardsUrl({
284
+ protoPath: "/v1/cards/query",
285
+ data: payload,
286
+ host
287
+ }),
288
+ data: payload
289
+ }
290
+ ]
291
+ };
292
+ return metadata;
293
+ }
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;
381
+ }
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
+ ]);
399
+ 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",
485
+ method: "POST",
486
+ methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkCreateCards",
487
+ packageName: PACKAGE_NAME,
488
+ migrationOptions: {
489
+ optInTransformResponse: true
490
+ },
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",
578
+ data: payload,
579
+ host
580
+ }),
581
+ data: payload
582
+ };
583
+ return metadata;
584
+ }
585
+ return __bulkDeleteCards;
586
+ }
587
+ function bulkUpdateCardTags(payload) {
588
+ function __bulkUpdateCardTags({ host }) {
589
+ const metadata = {
590
+ entityFqdn: "wix.crm.pipelines.v1.card",
591
+ method: "POST",
592
+ methodFqn: "wix.crm.pipelines.cards.v1.Cards.BulkUpdateCardTags",
593
+ packageName: PACKAGE_NAME,
594
+ migrationOptions: {
595
+ optInTransformResponse: true
596
+ },
597
+ url: resolveWixCrmPipelinesCardsV1CardsUrl({
598
+ protoPath: "/v1/bulk/cards/update-tags",
599
+ data: payload,
600
+ host
601
+ }),
602
+ data: payload
603
+ };
604
+ return metadata;
605
+ }
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;
628
+ }
629
+
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 || {});
638
+ var Outcome = /* @__PURE__ */ ((Outcome2) => {
639
+ Outcome2["NONE"] = "NONE";
640
+ Outcome2["WON"] = "WON";
641
+ Outcome2["LOST"] = "LOST";
642
+ return Outcome2;
643
+ })(Outcome || {});
644
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
645
+ SortOrder2["ASC"] = "ASC";
646
+ SortOrder2["DESC"] = "DESC";
647
+ return SortOrder2;
648
+ })(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
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
706
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
707
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
708
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
709
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
710
+ WebhookIdentityType2["APP"] = "APP";
711
+ return WebhookIdentityType2;
712
+ })(WebhookIdentityType || {});
713
+
714
+ // src/crm-pipelines-v1-card-pipelines.meta.ts
715
+ function createCard2() {
716
+ const payload = {};
717
+ const getRequestOptions = createCard(payload);
718
+ const getUrl = (context) => {
719
+ const { url } = getRequestOptions(context);
720
+ return url;
721
+ };
722
+ return {
723
+ getUrl,
724
+ httpMethod: "POST",
725
+ path: "/v1/cards",
726
+ pathParams: {},
727
+ __requestType: null,
728
+ __originalRequestType: null,
729
+ __responseType: null,
730
+ __originalResponseType: null
731
+ };
732
+ }
733
+ function getCard2() {
734
+ const payload = { cardId: ":cardId" };
735
+ const getRequestOptions = getCard(payload);
736
+ const getUrl = (context) => {
737
+ const { url } = getRequestOptions(context);
738
+ return url;
739
+ };
740
+ return {
741
+ getUrl,
742
+ httpMethod: "GET",
743
+ path: "/v1/cards/{cardId}",
744
+ pathParams: { cardId: "cardId" },
745
+ __requestType: null,
746
+ __originalRequestType: null,
747
+ __responseType: null,
748
+ __originalResponseType: null
749
+ };
750
+ }
751
+ function updateCard2() {
752
+ const payload = { card: { id: ":cardId" } };
753
+ const getRequestOptions = updateCard(payload);
754
+ const getUrl = (context) => {
755
+ const { url } = getRequestOptions(context);
756
+ return url;
757
+ };
758
+ return {
759
+ getUrl,
760
+ httpMethod: "PATCH",
761
+ path: "/v1/cards/{card.id}",
762
+ pathParams: { cardId: "cardId" },
763
+ __requestType: null,
764
+ __originalRequestType: null,
765
+ __responseType: null,
766
+ __originalResponseType: null
767
+ };
768
+ }
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);
790
+ const getUrl = (context) => {
791
+ const { url } = getRequestOptions(context);
792
+ return url;
793
+ };
794
+ return {
795
+ getUrl,
796
+ 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: {},
835
+ __requestType: null,
836
+ __originalRequestType: null,
837
+ __responseType: null,
838
+ __originalResponseType: null
839
+ };
840
+ }
841
+ function searchCardsByStage2() {
842
+ const payload = {};
843
+ const getRequestOptions = searchCardsByStage(payload);
844
+ const getUrl = (context) => {
845
+ const { url } = getRequestOptions(context);
846
+ return url;
847
+ };
848
+ return {
849
+ getUrl,
850
+ 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",
906
+ pathParams: {},
907
+ __requestType: null,
908
+ __originalRequestType: null,
909
+ __responseType: null,
910
+ __originalResponseType: null
911
+ };
912
+ }
913
+ function bulkUpdateCardTags2() {
914
+ const payload = {};
915
+ const getRequestOptions = bulkUpdateCardTags(payload);
916
+ const getUrl = (context) => {
917
+ const { url } = getRequestOptions(context);
918
+ return url;
919
+ };
920
+ return {
921
+ getUrl,
922
+ httpMethod: "POST",
923
+ path: "/v1/bulk/cards/update-tags",
924
+ pathParams: {},
925
+ __requestType: null,
926
+ __originalRequestType: null,
927
+ __responseType: null,
928
+ __originalResponseType: null
929
+ };
930
+ }
931
+ function bulkUpdateCardTagsByFilter2() {
932
+ const payload = {};
933
+ const getRequestOptions = bulkUpdateCardTagsByFilter(payload);
934
+ const getUrl = (context) => {
935
+ const { url } = getRequestOptions(context);
936
+ return url;
937
+ };
938
+ return {
939
+ getUrl,
940
+ httpMethod: "POST",
941
+ path: "/v1/bulk/cards/update-tags-by-filter",
942
+ pathParams: {},
943
+ __requestType: null,
944
+ __originalRequestType: null,
945
+ __responseType: null,
946
+ __originalResponseType: null
947
+ };
948
+ }
949
+ 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
+ Outcome as OutcomeOriginal,
957
+ Priority as PriorityOriginal,
958
+ ScalarType as ScalarTypeOriginal,
959
+ SortDirection as SortDirectionOriginal,
960
+ SortOrder as SortOrderOriginal,
961
+ SortType as SortTypeOriginal,
962
+ 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
976
+ };
977
+ //# sourceMappingURL=meta.mjs.map