@wix/auto_sdk_email-marketing_campaigns 1.0.80 → 1.0.82

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 +34 -34
  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 +533 -533
  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 +34 -34
  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 +533 -533
  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 +34 -34
  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 +533 -533
  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 +34 -34
  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 +533 -533
  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
package/build/cjs/meta.js CHANGED
@@ -53,7 +53,44 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
53
53
  var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
54
54
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
55
55
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
56
- function resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl(opts) {
56
+ function resolveWixEmailmarketingApiV1CampaignValidationServiceUrl(opts) {
57
+ const domainToMappings = {
58
+ "www.wixapis.com": [
59
+ {
60
+ srcPath: "/email-marketing/v1/campaign-validation",
61
+ destPath: "/v1/campaign-validation"
62
+ }
63
+ ],
64
+ "manage._base_domain_": [
65
+ {
66
+ srcPath: "/_api/shoutout/v1/campaign-validation",
67
+ destPath: "/v1/campaign-validation"
68
+ }
69
+ ],
70
+ "*.dev.wix-code.com": [
71
+ {
72
+ srcPath: "/email-marketing/v1/campaign-validation/validate-html-links",
73
+ destPath: "/v1/campaign-validation/validate-html-links"
74
+ },
75
+ {
76
+ srcPath: "/email-marketing/v1/campaign-validation/validate-link",
77
+ destPath: "/v1/campaign-validation/validate-link"
78
+ }
79
+ ],
80
+ _: [
81
+ {
82
+ srcPath: "/email-marketing/v1/campaign-validation/validate-html-links",
83
+ destPath: "/v1/campaign-validation/validate-html-links"
84
+ },
85
+ {
86
+ srcPath: "/email-marketing/v1/campaign-validation/validate-link",
87
+ destPath: "/v1/campaign-validation/validate-link"
88
+ }
89
+ ]
90
+ };
91
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
92
+ }
93
+ function resolveWixEmailmarketingApiV1CampaignServiceUrl(opts) {
57
94
  const domainToMappings = {
58
95
  "manage._base_domain_": [
59
96
  {
@@ -146,44 +183,7 @@ function resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl(opts) {
146
183
  };
147
184
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
148
185
  }
149
- function resolveWixEmailmarketingApiV1CampaignValidationServiceUrl(opts) {
150
- const domainToMappings = {
151
- "www.wixapis.com": [
152
- {
153
- srcPath: "/email-marketing/v1/campaign-validation",
154
- destPath: "/v1/campaign-validation"
155
- }
156
- ],
157
- "manage._base_domain_": [
158
- {
159
- srcPath: "/_api/shoutout/v1/campaign-validation",
160
- destPath: "/v1/campaign-validation"
161
- }
162
- ],
163
- "*.dev.wix-code.com": [
164
- {
165
- srcPath: "/email-marketing/v1/campaign-validation/validate-html-links",
166
- destPath: "/v1/campaign-validation/validate-html-links"
167
- },
168
- {
169
- srcPath: "/email-marketing/v1/campaign-validation/validate-link",
170
- destPath: "/v1/campaign-validation/validate-link"
171
- }
172
- ],
173
- _: [
174
- {
175
- srcPath: "/email-marketing/v1/campaign-validation/validate-html-links",
176
- destPath: "/v1/campaign-validation/validate-html-links"
177
- },
178
- {
179
- srcPath: "/email-marketing/v1/campaign-validation/validate-link",
180
- destPath: "/v1/campaign-validation/validate-link"
181
- }
182
- ]
183
- };
184
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
185
- }
186
- function resolveWixEmailmarketingApiV1CampaignServiceUrl(opts) {
186
+ function resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl(opts) {
187
187
  const domainToMappings = {
188
188
  "manage._base_domain_": [
189
189
  {
@@ -277,6 +277,54 @@ function resolveWixEmailmarketingApiV1CampaignServiceUrl(opts) {
277
277
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
278
278
  }
279
279
  var PACKAGE_NAME = "@wix/auto_sdk_email-marketing_campaigns";
280
+ function listStatistics(payload) {
281
+ function __listStatistics({ host }) {
282
+ const metadata = {
283
+ entityFqdn: "wix.email_marketing.v1.campaign",
284
+ method: "GET",
285
+ methodFqn: "wix.emailmarketing.api.v1.CampaignStatisticsService.ListStatistics",
286
+ packageName: PACKAGE_NAME,
287
+ migrationOptions: {
288
+ optInTransformResponse: true
289
+ },
290
+ url: resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl({
291
+ protoPath: "/v1/campaigns/statistics",
292
+ data: payload,
293
+ host
294
+ }),
295
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
296
+ };
297
+ return metadata;
298
+ }
299
+ return __listStatistics;
300
+ }
301
+ function listRecipients(payload) {
302
+ function __listRecipients({ host }) {
303
+ const metadata = {
304
+ entityFqdn: "wix.email_marketing.v1.campaign",
305
+ method: "GET",
306
+ methodFqn: "wix.emailmarketing.api.v1.CampaignStatisticsService.ListRecipients",
307
+ packageName: PACKAGE_NAME,
308
+ migrationOptions: {
309
+ optInTransformResponse: true
310
+ },
311
+ url: resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl({
312
+ protoPath: "/v1/campaigns/{campaignId}/statistics/recipients",
313
+ data: payload,
314
+ host
315
+ }),
316
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
317
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
318
+ {
319
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
320
+ paths: [{ path: "recipients.lastActivityDate" }]
321
+ }
322
+ ])
323
+ };
324
+ return metadata;
325
+ }
326
+ return __listRecipients;
327
+ }
280
328
  function get(payload) {
281
329
  function __get({ host }) {
282
330
  const metadata = {
@@ -592,54 +640,6 @@ function validateHtmlLinks(payload) {
592
640
  }
593
641
  return __validateHtmlLinks;
594
642
  }
595
- function listStatistics(payload) {
596
- function __listStatistics({ host }) {
597
- const metadata = {
598
- entityFqdn: "wix.email_marketing.v1.campaign",
599
- method: "GET",
600
- methodFqn: "wix.emailmarketing.api.v1.CampaignStatisticsService.ListStatistics",
601
- packageName: PACKAGE_NAME,
602
- migrationOptions: {
603
- optInTransformResponse: true
604
- },
605
- url: resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl({
606
- protoPath: "/v1/campaigns/statistics",
607
- data: payload,
608
- host
609
- }),
610
- params: (0, import_rest_modules.toURLSearchParams)(payload)
611
- };
612
- return metadata;
613
- }
614
- return __listStatistics;
615
- }
616
- function listRecipients(payload) {
617
- function __listRecipients({ host }) {
618
- const metadata = {
619
- entityFqdn: "wix.email_marketing.v1.campaign",
620
- method: "GET",
621
- methodFqn: "wix.emailmarketing.api.v1.CampaignStatisticsService.ListRecipients",
622
- packageName: PACKAGE_NAME,
623
- migrationOptions: {
624
- optInTransformResponse: true
625
- },
626
- url: resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl({
627
- protoPath: "/v1/campaigns/{campaignId}/statistics/recipients",
628
- data: payload,
629
- host
630
- }),
631
- params: (0, import_rest_modules.toURLSearchParams)(payload),
632
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
633
- {
634
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
635
- paths: [{ path: "recipients.lastActivityDate" }]
636
- }
637
- ])
638
- };
639
- return metadata;
640
- }
641
- return __listRecipients;
642
- }
643
643
 
644
644
  // src/email-marketing-v1-campaign-campaigns.types.ts
645
645
  var CampaignEditorTypeEnum = /* @__PURE__ */ ((CampaignEditorTypeEnum2) => {
@@ -715,6 +715,17 @@ var CampaignTypeEnum = /* @__PURE__ */ ((CampaignTypeEnum2) => {
715
715
  CampaignTypeEnum2["TRIGGERED"] = "TRIGGERED";
716
716
  return CampaignTypeEnum2;
717
717
  })(CampaignTypeEnum || {});
718
+ var RecipientsActivityEnum = /* @__PURE__ */ ((RecipientsActivityEnum2) => {
719
+ RecipientsActivityEnum2["UNKNOWN"] = "UNKNOWN";
720
+ RecipientsActivityEnum2["DELIVERED"] = "DELIVERED";
721
+ RecipientsActivityEnum2["OPENED"] = "OPENED";
722
+ RecipientsActivityEnum2["CLICKED"] = "CLICKED";
723
+ RecipientsActivityEnum2["BOUNCED"] = "BOUNCED";
724
+ RecipientsActivityEnum2["NOT_SENT"] = "NOT_SENT";
725
+ RecipientsActivityEnum2["SENT"] = "SENT";
726
+ RecipientsActivityEnum2["NOT_OPENED"] = "NOT_OPENED";
727
+ return RecipientsActivityEnum2;
728
+ })(RecipientsActivityEnum || {});
718
729
  var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
719
730
  ActivityType2["DELIVERY"] = "DELIVERY";
720
731
  ActivityType2["CLICK"] = "CLICK";
@@ -731,19 +742,44 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
731
742
  WebhookIdentityType2["APP"] = "APP";
732
743
  return WebhookIdentityType2;
733
744
  })(WebhookIdentityType || {});
734
- var RecipientsActivityEnum = /* @__PURE__ */ ((RecipientsActivityEnum2) => {
735
- RecipientsActivityEnum2["UNKNOWN"] = "UNKNOWN";
736
- RecipientsActivityEnum2["DELIVERED"] = "DELIVERED";
737
- RecipientsActivityEnum2["OPENED"] = "OPENED";
738
- RecipientsActivityEnum2["CLICKED"] = "CLICKED";
739
- RecipientsActivityEnum2["BOUNCED"] = "BOUNCED";
740
- RecipientsActivityEnum2["NOT_SENT"] = "NOT_SENT";
741
- RecipientsActivityEnum2["SENT"] = "SENT";
742
- RecipientsActivityEnum2["NOT_OPENED"] = "NOT_OPENED";
743
- return RecipientsActivityEnum2;
744
- })(RecipientsActivityEnum || {});
745
745
 
746
746
  // src/email-marketing-v1-campaign-campaigns.meta.ts
747
+ function listStatistics2() {
748
+ const payload = {};
749
+ const getRequestOptions = listStatistics(payload);
750
+ const getUrl = (context) => {
751
+ const { url } = getRequestOptions(context);
752
+ return url;
753
+ };
754
+ return {
755
+ getUrl,
756
+ httpMethod: "GET",
757
+ path: "/v1/campaigns/statistics",
758
+ pathParams: {},
759
+ __requestType: null,
760
+ __originalRequestType: null,
761
+ __responseType: null,
762
+ __originalResponseType: null
763
+ };
764
+ }
765
+ function listRecipients2() {
766
+ const payload = { campaignId: ":campaignId" };
767
+ const getRequestOptions = listRecipients(payload);
768
+ const getUrl = (context) => {
769
+ const { url } = getRequestOptions(context);
770
+ return url;
771
+ };
772
+ return {
773
+ getUrl,
774
+ httpMethod: "GET",
775
+ path: "/v1/campaigns/{campaignId}/statistics/recipients",
776
+ pathParams: { campaignId: "campaignId" },
777
+ __requestType: null,
778
+ __originalRequestType: null,
779
+ __responseType: null,
780
+ __originalResponseType: null
781
+ };
782
+ }
747
783
  function getCampaign() {
748
784
  const payload = { campaignId: ":campaignId" };
749
785
  const getRequestOptions = get(payload);
@@ -960,42 +996,6 @@ function validateHtmlLinks2() {
960
996
  __originalResponseType: null
961
997
  };
962
998
  }
963
- function listStatistics2() {
964
- const payload = {};
965
- const getRequestOptions = listStatistics(payload);
966
- const getUrl = (context) => {
967
- const { url } = getRequestOptions(context);
968
- return url;
969
- };
970
- return {
971
- getUrl,
972
- httpMethod: "GET",
973
- path: "/v1/campaigns/statistics",
974
- pathParams: {},
975
- __requestType: null,
976
- __originalRequestType: null,
977
- __responseType: null,
978
- __originalResponseType: null
979
- };
980
- }
981
- function listRecipients2() {
982
- const payload = { campaignId: ":campaignId" };
983
- const getRequestOptions = listRecipients(payload);
984
- const getUrl = (context) => {
985
- const { url } = getRequestOptions(context);
986
- return url;
987
- };
988
- return {
989
- getUrl,
990
- httpMethod: "GET",
991
- path: "/v1/campaigns/{campaignId}/statistics/recipients",
992
- pathParams: { campaignId: "campaignId" },
993
- __requestType: null,
994
- __originalRequestType: null,
995
- __responseType: null,
996
- __originalResponseType: null
997
- };
998
- }
999
999
  // Annotate the CommonJS export names for ESM import in node:
1000
1000
  0 && (module.exports = {
1001
1001
  ActivityTypeOriginal,