@wix/auto_sdk_email-marketing_campaigns 1.0.79 → 1.0.81

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 (37) hide show
  1. package/build/cjs/index.d.ts +35 -35
  2. package/build/cjs/index.js +170 -170
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +534 -534
  5. package/build/cjs/index.typings.js +154 -154
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +479 -479
  8. package/build/cjs/meta.js +134 -134
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +35 -35
  11. package/build/es/index.mjs +170 -170
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +534 -534
  14. package/build/es/index.typings.mjs +154 -154
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +479 -479
  17. package/build/es/meta.mjs +134 -134
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +35 -35
  20. package/build/internal/cjs/index.js +170 -170
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +534 -534
  23. package/build/internal/cjs/index.typings.js +154 -154
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +479 -479
  26. package/build/internal/cjs/meta.js +134 -134
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +35 -35
  29. package/build/internal/es/index.mjs +170 -170
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +534 -534
  32. package/build/internal/es/index.typings.mjs +154 -154
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +479 -479
  35. package/build/internal/es/meta.mjs +134 -134
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -4,7 +4,44 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
4
4
  import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
5
5
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
6
6
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
7
- function resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl(opts) {
7
+ function resolveWixEmailmarketingApiV1CampaignValidationServiceUrl(opts) {
8
+ const domainToMappings = {
9
+ "www.wixapis.com": [
10
+ {
11
+ srcPath: "/email-marketing/v1/campaign-validation",
12
+ destPath: "/v1/campaign-validation"
13
+ }
14
+ ],
15
+ "manage._base_domain_": [
16
+ {
17
+ srcPath: "/_api/shoutout/v1/campaign-validation",
18
+ destPath: "/v1/campaign-validation"
19
+ }
20
+ ],
21
+ "*.dev.wix-code.com": [
22
+ {
23
+ srcPath: "/email-marketing/v1/campaign-validation/validate-html-links",
24
+ destPath: "/v1/campaign-validation/validate-html-links"
25
+ },
26
+ {
27
+ srcPath: "/email-marketing/v1/campaign-validation/validate-link",
28
+ destPath: "/v1/campaign-validation/validate-link"
29
+ }
30
+ ],
31
+ _: [
32
+ {
33
+ srcPath: "/email-marketing/v1/campaign-validation/validate-html-links",
34
+ destPath: "/v1/campaign-validation/validate-html-links"
35
+ },
36
+ {
37
+ srcPath: "/email-marketing/v1/campaign-validation/validate-link",
38
+ destPath: "/v1/campaign-validation/validate-link"
39
+ }
40
+ ]
41
+ };
42
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
43
+ }
44
+ function resolveWixEmailmarketingApiV1CampaignServiceUrl(opts) {
8
45
  const domainToMappings = {
9
46
  "manage._base_domain_": [
10
47
  {
@@ -97,44 +134,7 @@ function resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl(opts) {
97
134
  };
98
135
  return resolveUrl(Object.assign(opts, { domainToMappings }));
99
136
  }
100
- function resolveWixEmailmarketingApiV1CampaignValidationServiceUrl(opts) {
101
- const domainToMappings = {
102
- "www.wixapis.com": [
103
- {
104
- srcPath: "/email-marketing/v1/campaign-validation",
105
- destPath: "/v1/campaign-validation"
106
- }
107
- ],
108
- "manage._base_domain_": [
109
- {
110
- srcPath: "/_api/shoutout/v1/campaign-validation",
111
- destPath: "/v1/campaign-validation"
112
- }
113
- ],
114
- "*.dev.wix-code.com": [
115
- {
116
- srcPath: "/email-marketing/v1/campaign-validation/validate-html-links",
117
- destPath: "/v1/campaign-validation/validate-html-links"
118
- },
119
- {
120
- srcPath: "/email-marketing/v1/campaign-validation/validate-link",
121
- destPath: "/v1/campaign-validation/validate-link"
122
- }
123
- ],
124
- _: [
125
- {
126
- srcPath: "/email-marketing/v1/campaign-validation/validate-html-links",
127
- destPath: "/v1/campaign-validation/validate-html-links"
128
- },
129
- {
130
- srcPath: "/email-marketing/v1/campaign-validation/validate-link",
131
- destPath: "/v1/campaign-validation/validate-link"
132
- }
133
- ]
134
- };
135
- return resolveUrl(Object.assign(opts, { domainToMappings }));
136
- }
137
- function resolveWixEmailmarketingApiV1CampaignServiceUrl(opts) {
137
+ function resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl(opts) {
138
138
  const domainToMappings = {
139
139
  "manage._base_domain_": [
140
140
  {
@@ -228,6 +228,54 @@ function resolveWixEmailmarketingApiV1CampaignServiceUrl(opts) {
228
228
  return resolveUrl(Object.assign(opts, { domainToMappings }));
229
229
  }
230
230
  var PACKAGE_NAME = "@wix/auto_sdk_email-marketing_campaigns";
231
+ function listStatistics(payload) {
232
+ function __listStatistics({ host }) {
233
+ const metadata = {
234
+ entityFqdn: "wix.email_marketing.v1.campaign",
235
+ method: "GET",
236
+ methodFqn: "wix.emailmarketing.api.v1.CampaignStatisticsService.ListStatistics",
237
+ packageName: PACKAGE_NAME,
238
+ migrationOptions: {
239
+ optInTransformResponse: true
240
+ },
241
+ url: resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl({
242
+ protoPath: "/v1/campaigns/statistics",
243
+ data: payload,
244
+ host
245
+ }),
246
+ params: toURLSearchParams(payload)
247
+ };
248
+ return metadata;
249
+ }
250
+ return __listStatistics;
251
+ }
252
+ function listRecipients(payload) {
253
+ function __listRecipients({ host }) {
254
+ const metadata = {
255
+ entityFqdn: "wix.email_marketing.v1.campaign",
256
+ method: "GET",
257
+ methodFqn: "wix.emailmarketing.api.v1.CampaignStatisticsService.ListRecipients",
258
+ packageName: PACKAGE_NAME,
259
+ migrationOptions: {
260
+ optInTransformResponse: true
261
+ },
262
+ url: resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl({
263
+ protoPath: "/v1/campaigns/{campaignId}/statistics/recipients",
264
+ data: payload,
265
+ host
266
+ }),
267
+ params: toURLSearchParams(payload),
268
+ transformResponse: (payload2) => transformPaths(payload2, [
269
+ {
270
+ transformFn: transformRESTTimestampToSDKTimestamp,
271
+ paths: [{ path: "recipients.lastActivityDate" }]
272
+ }
273
+ ])
274
+ };
275
+ return metadata;
276
+ }
277
+ return __listRecipients;
278
+ }
231
279
  function get(payload) {
232
280
  function __get({ host }) {
233
281
  const metadata = {
@@ -543,54 +591,6 @@ function validateHtmlLinks(payload) {
543
591
  }
544
592
  return __validateHtmlLinks;
545
593
  }
546
- function listStatistics(payload) {
547
- function __listStatistics({ host }) {
548
- const metadata = {
549
- entityFqdn: "wix.email_marketing.v1.campaign",
550
- method: "GET",
551
- methodFqn: "wix.emailmarketing.api.v1.CampaignStatisticsService.ListStatistics",
552
- packageName: PACKAGE_NAME,
553
- migrationOptions: {
554
- optInTransformResponse: true
555
- },
556
- url: resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl({
557
- protoPath: "/v1/campaigns/statistics",
558
- data: payload,
559
- host
560
- }),
561
- params: toURLSearchParams(payload)
562
- };
563
- return metadata;
564
- }
565
- return __listStatistics;
566
- }
567
- function listRecipients(payload) {
568
- function __listRecipients({ host }) {
569
- const metadata = {
570
- entityFqdn: "wix.email_marketing.v1.campaign",
571
- method: "GET",
572
- methodFqn: "wix.emailmarketing.api.v1.CampaignStatisticsService.ListRecipients",
573
- packageName: PACKAGE_NAME,
574
- migrationOptions: {
575
- optInTransformResponse: true
576
- },
577
- url: resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl({
578
- protoPath: "/v1/campaigns/{campaignId}/statistics/recipients",
579
- data: payload,
580
- host
581
- }),
582
- params: toURLSearchParams(payload),
583
- transformResponse: (payload2) => transformPaths(payload2, [
584
- {
585
- transformFn: transformRESTTimestampToSDKTimestamp,
586
- paths: [{ path: "recipients.lastActivityDate" }]
587
- }
588
- ])
589
- };
590
- return metadata;
591
- }
592
- return __listRecipients;
593
- }
594
594
 
595
595
  // src/email-marketing-v1-campaign-campaigns.types.ts
596
596
  var CampaignEditorTypeEnum = /* @__PURE__ */ ((CampaignEditorTypeEnum2) => {
@@ -666,6 +666,17 @@ var CampaignTypeEnum = /* @__PURE__ */ ((CampaignTypeEnum2) => {
666
666
  CampaignTypeEnum2["TRIGGERED"] = "TRIGGERED";
667
667
  return CampaignTypeEnum2;
668
668
  })(CampaignTypeEnum || {});
669
+ var RecipientsActivityEnum = /* @__PURE__ */ ((RecipientsActivityEnum2) => {
670
+ RecipientsActivityEnum2["UNKNOWN"] = "UNKNOWN";
671
+ RecipientsActivityEnum2["DELIVERED"] = "DELIVERED";
672
+ RecipientsActivityEnum2["OPENED"] = "OPENED";
673
+ RecipientsActivityEnum2["CLICKED"] = "CLICKED";
674
+ RecipientsActivityEnum2["BOUNCED"] = "BOUNCED";
675
+ RecipientsActivityEnum2["NOT_SENT"] = "NOT_SENT";
676
+ RecipientsActivityEnum2["SENT"] = "SENT";
677
+ RecipientsActivityEnum2["NOT_OPENED"] = "NOT_OPENED";
678
+ return RecipientsActivityEnum2;
679
+ })(RecipientsActivityEnum || {});
669
680
  var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
670
681
  ActivityType2["DELIVERY"] = "DELIVERY";
671
682
  ActivityType2["CLICK"] = "CLICK";
@@ -682,19 +693,44 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
682
693
  WebhookIdentityType2["APP"] = "APP";
683
694
  return WebhookIdentityType2;
684
695
  })(WebhookIdentityType || {});
685
- var RecipientsActivityEnum = /* @__PURE__ */ ((RecipientsActivityEnum2) => {
686
- RecipientsActivityEnum2["UNKNOWN"] = "UNKNOWN";
687
- RecipientsActivityEnum2["DELIVERED"] = "DELIVERED";
688
- RecipientsActivityEnum2["OPENED"] = "OPENED";
689
- RecipientsActivityEnum2["CLICKED"] = "CLICKED";
690
- RecipientsActivityEnum2["BOUNCED"] = "BOUNCED";
691
- RecipientsActivityEnum2["NOT_SENT"] = "NOT_SENT";
692
- RecipientsActivityEnum2["SENT"] = "SENT";
693
- RecipientsActivityEnum2["NOT_OPENED"] = "NOT_OPENED";
694
- return RecipientsActivityEnum2;
695
- })(RecipientsActivityEnum || {});
696
696
 
697
697
  // src/email-marketing-v1-campaign-campaigns.meta.ts
698
+ function listStatistics2() {
699
+ const payload = {};
700
+ const getRequestOptions = listStatistics(payload);
701
+ const getUrl = (context) => {
702
+ const { url } = getRequestOptions(context);
703
+ return url;
704
+ };
705
+ return {
706
+ getUrl,
707
+ httpMethod: "GET",
708
+ path: "/v1/campaigns/statistics",
709
+ pathParams: {},
710
+ __requestType: null,
711
+ __originalRequestType: null,
712
+ __responseType: null,
713
+ __originalResponseType: null
714
+ };
715
+ }
716
+ function listRecipients2() {
717
+ const payload = { campaignId: ":campaignId" };
718
+ const getRequestOptions = listRecipients(payload);
719
+ const getUrl = (context) => {
720
+ const { url } = getRequestOptions(context);
721
+ return url;
722
+ };
723
+ return {
724
+ getUrl,
725
+ httpMethod: "GET",
726
+ path: "/v1/campaigns/{campaignId}/statistics/recipients",
727
+ pathParams: { campaignId: "campaignId" },
728
+ __requestType: null,
729
+ __originalRequestType: null,
730
+ __responseType: null,
731
+ __originalResponseType: null
732
+ };
733
+ }
698
734
  function getCampaign() {
699
735
  const payload = { campaignId: ":campaignId" };
700
736
  const getRequestOptions = get(payload);
@@ -911,42 +947,6 @@ function validateHtmlLinks2() {
911
947
  __originalResponseType: null
912
948
  };
913
949
  }
914
- function listStatistics2() {
915
- const payload = {};
916
- const getRequestOptions = listStatistics(payload);
917
- const getUrl = (context) => {
918
- const { url } = getRequestOptions(context);
919
- return url;
920
- };
921
- return {
922
- getUrl,
923
- httpMethod: "GET",
924
- path: "/v1/campaigns/statistics",
925
- pathParams: {},
926
- __requestType: null,
927
- __originalRequestType: null,
928
- __responseType: null,
929
- __originalResponseType: null
930
- };
931
- }
932
- function listRecipients2() {
933
- const payload = { campaignId: ":campaignId" };
934
- const getRequestOptions = listRecipients(payload);
935
- const getUrl = (context) => {
936
- const { url } = getRequestOptions(context);
937
- return url;
938
- };
939
- return {
940
- getUrl,
941
- httpMethod: "GET",
942
- path: "/v1/campaigns/{campaignId}/statistics/recipients",
943
- pathParams: { campaignId: "campaignId" },
944
- __requestType: null,
945
- __originalRequestType: null,
946
- __responseType: null,
947
- __originalResponseType: null
948
- };
949
- }
950
950
  export {
951
951
  ActivityType as ActivityTypeOriginal,
952
952
  CampaignEditorTypeEnum as CampaignEditorTypeEnumOriginal,