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