@wix/bex-utils 2.71.0 → 2.72.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 (110) hide show
  1. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/builders.impl.d.ts +115 -0
  2. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/builders.impl.js +1340 -0
  3. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/builders.impl.js.map +1 -0
  4. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/http.impl.d.ts +29 -0
  5. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/http.impl.js +524 -0
  6. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/http.impl.js.map +1 -0
  7. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/meta.impl.d.ts +20 -0
  8. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/meta.impl.js +119 -0
  9. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/meta.impl.js.map +1 -0
  10. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/client/proto-generated.d.ts +18874 -0
  11. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/client/proto-generated.js +2 -0
  12. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/proto-generated.d.ts +9468 -0
  13. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/proto-generated.js +1 -0
  14. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/server/proto-generated.d.ts +18788 -0
  15. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/server/proto-generated.js +2 -0
  16. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/rpc.impl.d.ts +39 -0
  17. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/rpc.impl.js +113 -0
  18. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/rpc.impl.js.map +1 -0
  19. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/types.impl.d.ts +1248 -0
  20. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/types.impl.js +371 -0
  21. package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/types.impl.js.map +1 -0
  22. package/@wix/ambassador-dealer-v1-serving-offer/build/es/builders.impl.d.ts +115 -0
  23. package/@wix/ambassador-dealer-v1-serving-offer/build/es/builders.impl.js +1209 -0
  24. package/@wix/ambassador-dealer-v1-serving-offer/build/es/builders.impl.js.map +1 -0
  25. package/@wix/ambassador-dealer-v1-serving-offer/build/es/http.impl.d.ts +29 -0
  26. package/@wix/ambassador-dealer-v1-serving-offer/build/es/http.impl.js +516 -0
  27. package/@wix/ambassador-dealer-v1-serving-offer/build/es/http.impl.js.map +1 -0
  28. package/@wix/ambassador-dealer-v1-serving-offer/build/es/meta.impl.d.ts +20 -0
  29. package/@wix/ambassador-dealer-v1-serving-offer/build/es/meta.impl.js +92 -0
  30. package/@wix/ambassador-dealer-v1-serving-offer/build/es/meta.impl.js.map +1 -0
  31. package/@wix/ambassador-dealer-v1-serving-offer/build/es/rpc.impl.d.ts +39 -0
  32. package/@wix/ambassador-dealer-v1-serving-offer/build/es/rpc.impl.js +86 -0
  33. package/@wix/ambassador-dealer-v1-serving-offer/build/es/rpc.impl.js.map +1 -0
  34. package/@wix/ambassador-dealer-v1-serving-offer/build/es/types.impl.d.ts +1248 -0
  35. package/@wix/ambassador-dealer-v1-serving-offer/build/es/types.impl.js +368 -0
  36. package/@wix/ambassador-dealer-v1-serving-offer/build/es/types.impl.js.map +1 -0
  37. package/@wix/ambassador-dealer-v1-serving-offer/builders/package.json +7 -0
  38. package/@wix/ambassador-dealer-v1-serving-offer/http/package.json +7 -0
  39. package/@wix/ambassador-dealer-v1-serving-offer/meta/package.json +7 -0
  40. package/@wix/ambassador-dealer-v1-serving-offer/package.json +52 -0
  41. package/@wix/ambassador-dealer-v1-serving-offer/rpc/package.json +6 -0
  42. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/experiment_properties.proto +46 -0
  43. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/experiment_results.proto +39 -0
  44. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/experiment_support_kpis.proto +29 -0
  45. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/experiments_properties_thin.proto +31 -0
  46. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/wixab_service.proto +81 -0
  47. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/action_payload.proto +33 -0
  48. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/annotations.proto +451 -0
  49. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/api_errors.proto +142 -0
  50. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/callback.proto +163 -0
  51. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/context.proto +19 -0
  52. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/entity.proto +127 -0
  53. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/errors.proto +127 -0
  54. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/idempotency.proto +25 -0
  55. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/permissions.proto +46 -0
  56. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/sla.proto +24 -0
  57. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/subscription.proto +32 -0
  58. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/validations.proto +142 -0
  59. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/address.proto +148 -0
  60. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/bulk.proto +53 -0
  61. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/data/dataextensions/extended-fields.proto +20 -0
  62. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/data/dataextensions/update-extended-fields-messages.proto +15 -0
  63. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/data/errors.proto +435 -0
  64. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/identification.proto +40 -0
  65. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/image.proto +8 -0
  66. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/media.proto +280 -0
  67. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/money.proto +32 -0
  68. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/pageurl.proto +32 -0
  69. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/paging.proto +121 -0
  70. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/query.proto +812 -0
  71. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/sorting.proto +36 -0
  72. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/spi.proto +85 -0
  73. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/tags.proto +55 -0
  74. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/wixlink.proto +203 -0
  75. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/audiences.proto +226 -0
  76. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/campaigns.proto +270 -0
  77. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/frequency-caps.proto +74 -0
  78. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/localization-managers.proto +11 -0
  79. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/managers.proto +11 -0
  80. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/offer-test.proto +338 -0
  81. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/offer.proto +298 -0
  82. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/offers-service.proto +696 -0
  83. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/placements.proto +423 -0
  84. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/schemas-service.proto +142 -0
  85. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/targeting.proto +378 -0
  86. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/upstream/wix/common/paging.proto +126 -0
  87. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/upstream/wix/common/query.proto +840 -0
  88. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/upstream/wix/common/sorting.proto +37 -0
  89. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerOffersServing/api/v1/dealer-offers-debug.proto +188 -0
  90. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerOffersServing/api/v1/dealer-offers-serving.proto +177 -0
  91. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerOffersServing/api/v1/offer.proto +87 -0
  92. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerPriority/api/v1/priority-service.proto +57 -0
  93. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerPriority/api/v1/priority.proto +132 -0
  94. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/graphql/definitions.proto +13 -0
  95. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/http/field_mask.proto +46 -0
  96. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/optimization_tester_service.proto +284 -0
  97. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/test.proto +170 -0
  98. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/upstream/wix/common/bulk.proto +56 -0
  99. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/upstream/wix/common/paging.proto +121 -0
  100. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/upstream/wix/common/query.proto +741 -0
  101. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/upstream/wix/common/sorting.proto +26 -0
  102. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/targeting/v1/targeting.proto +406 -0
  103. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/targeting/v1/targeting_service.proto +247 -0
  104. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/variants_generator/v1/variant.proto +92 -0
  105. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/variants_generator/v1/variants_generator_service.proto +73 -0
  106. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/sdk/definitions.proto +191 -0
  107. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/spi/definitions.proto +187 -0
  108. package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/spi/http_error_status.proto +24 -0
  109. package/@wix/ambassador-dealer-v1-serving-offer/types/package.json +7 -0
  110. package/package.json +5 -4
@@ -0,0 +1,92 @@
1
+ import * as httpWixDealerV1ServingOffer from './http.impl';
2
+ export function debugOffer() {
3
+ var payload = { offerId: ':offerId' };
4
+ var getRequestOptions = httpWixDealerV1ServingOffer.debugOffer(payload);
5
+ var getUrl = function (context) {
6
+ var url = getRequestOptions(context).url;
7
+ return url;
8
+ };
9
+ return {
10
+ getUrl: getUrl,
11
+ httpMethod: 'POST',
12
+ path: '/v1/dealer/debug/offers/{offerId}/debug',
13
+ pathParams: { offerId: 'offerId' },
14
+ __requestType: null,
15
+ __originalRequestType: null,
16
+ __responseType: null,
17
+ __originalResponseType: null,
18
+ };
19
+ }
20
+ export function getOffer() {
21
+ var payload = { offerId: ':offerId' };
22
+ var getRequestOptions = httpWixDealerV1ServingOffer.getOffer(payload);
23
+ var getUrl = function (context) {
24
+ var url = getRequestOptions(context).url;
25
+ return url;
26
+ };
27
+ return {
28
+ getUrl: getUrl,
29
+ httpMethod: 'GET',
30
+ path: '/v1/dealer/debug/offer/{offerId}',
31
+ pathParams: { offerId: 'offerId' },
32
+ __requestType: null,
33
+ __originalRequestType: null,
34
+ __responseType: null,
35
+ __originalResponseType: null,
36
+ };
37
+ }
38
+ export function listOffers() {
39
+ var payload = {};
40
+ var getRequestOptions = httpWixDealerV1ServingOffer.listOffers(payload);
41
+ var getUrl = function (context) {
42
+ var url = getRequestOptions(context).url;
43
+ return url;
44
+ };
45
+ return {
46
+ getUrl: getUrl,
47
+ httpMethod: 'POST',
48
+ path: '/v1/dealer/serving/offers/list',
49
+ pathParams: {},
50
+ __requestType: null,
51
+ __originalRequestType: null,
52
+ __responseType: null,
53
+ __originalResponseType: null,
54
+ };
55
+ }
56
+ export function resolveOffer() {
57
+ var payload = {};
58
+ var getRequestOptions = httpWixDealerV1ServingOffer.resolveOffer(payload);
59
+ var getUrl = function (context) {
60
+ var url = getRequestOptions(context).url;
61
+ return url;
62
+ };
63
+ return {
64
+ getUrl: getUrl,
65
+ httpMethod: 'POST',
66
+ path: '/v1/dealer/serving/offer/resolve',
67
+ pathParams: {},
68
+ __requestType: null,
69
+ __originalRequestType: null,
70
+ __responseType: null,
71
+ __originalResponseType: null,
72
+ };
73
+ }
74
+ export function listOffersBulk() {
75
+ var payload = {};
76
+ var getRequestOptions = httpWixDealerV1ServingOffer.listOffersBulk(payload);
77
+ var getUrl = function (context) {
78
+ var url = getRequestOptions(context).url;
79
+ return url;
80
+ };
81
+ return {
82
+ getUrl: getUrl,
83
+ httpMethod: 'POST',
84
+ path: '/v1/dealer/serving/offers/bulk',
85
+ pathParams: {},
86
+ __requestType: null,
87
+ __originalRequestType: null,
88
+ __responseType: null,
89
+ __originalResponseType: null,
90
+ };
91
+ }
92
+ //# sourceMappingURL=meta.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.impl.js","sourceRoot":"","sources":["../../meta.impl.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,2BAA2B,MAAM,aAAa,CAAC;AAoB3D,MAAM,UAAU,UAAU;IAQxB,IAAM,OAAO,GAAG,EAAE,OAAO,EAAE,UAAU,EAAS,CAAC;IAE/C,IAAM,iBAAiB,GAAG,2BAA2B,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAE1E,IAAM,MAAM,GAAG,UAAC,OAAY;QAClB,IAAA,GAAG,GAAK,iBAAiB,CAAC,OAAO,CAAC,IAA/B,CAAgC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM,QAAA;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,yCAAyC;QAC/C,UAAU,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QAClC,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,QAAQ;IAQtB,IAAM,OAAO,GAAG,EAAE,OAAO,EAAE,UAAU,EAAS,CAAC;IAE/C,IAAM,iBAAiB,GAAG,2BAA2B,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAExE,IAAM,MAAM,GAAG,UAAC,OAAY;QAClB,IAAA,GAAG,GAAK,iBAAiB,CAAC,OAAO,CAAC,IAA/B,CAAgC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MA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C;AACJ,CAAC;AAED,MAAM,UAAU,cAAc;IAQ5B,IAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,IAAM,iBAAiB,GAAG,2BAA2B,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAE9E,IAAM,MAAM,GAAG,UAAC,OAAY;QAClB,IAAA,GAAG,GAAK,iBAAiB,CAAC,OAAO,CAAC,IAA/B,CAAgC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM,QAAA;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,gCAAgC;QACtC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { ListOffersBulkRequest, ListOffersBulkResponse, ListOffersRequest, ListOffersResponse, DebugOfferRequest, DebugOfferResponse, GetOfferRequest, GetOfferResponse, ResolveOfferRequest, ResolveOfferResponse } from './types.impl';
2
+ import * as wrapper from './proto/proto-generated';
3
+ declare const DealerOffersDebug: typeof wrapper.wix.dealerOffersServing.api.v1.DealerOffersDebug;
4
+ declare const DealerOffersServing: typeof wrapper.wix.dealerOffersServing.api.v1.DealerOffersServing;
5
+ export declare type RequestOptions<T = any, U = any> = {
6
+ _?: T;
7
+ requestData: any;
8
+ serviceArtifactId: string;
9
+ serviceProtoClass: U;
10
+ methodName: string;
11
+ };
12
+ /**
13
+ * Debug offer in a given context.
14
+ * Will return the offer and its audience result.
15
+ * Only for permitted users.
16
+ * Context is always explicit and can contains information such as userId, siteId, loggedInAccounnt etc.
17
+ */
18
+ export declare function debugOffer(payload: DebugOfferRequest): RequestOptions<DebugOfferResponse, typeof DealerOffersDebug>;
19
+ /** Get a single offer with creative. */
20
+ export declare function getOffer(payload: GetOfferRequest): RequestOptions<GetOfferResponse, typeof DealerOffersDebug>;
21
+ /**
22
+ * Get all offers the user or site are eligible for.
23
+ * A realEstateId (placementId) defines the product location of the offers and is always required,
24
+ * Context is taken implicitly from request with authorization header and wix session.
25
+ */
26
+ export declare function listOffers(payload: ListOffersRequest): RequestOptions<ListOffersResponse, typeof DealerOffersServing>;
27
+ /**
28
+ * Get a single offer if the user or site are eligible for.
29
+ * Context is taken implicitly from request with authorization header and wix session.
30
+ */
31
+ export declare function resolveOffer(payload: ResolveOfferRequest): RequestOptions<ResolveOfferResponse, typeof DealerOffersServing>;
32
+ /**
33
+ * Get all offers the user or site are eligible for.
34
+ * This is a bulk request for more then one realEstate (placement),
35
+ * max limit of 30 offers is applied for each placement.
36
+ * Context is taken implicitly from request with authorization header and wix session.
37
+ */
38
+ export declare function listOffersBulk(payload: ListOffersBulkRequest): RequestOptions<ListOffersBulkResponse, typeof DealerOffersServing>;
39
+ export {};
@@ -0,0 +1,86 @@
1
+ import * as wrapper from './proto/proto-generated';
2
+ var DealerOffersDebug = wrapper.wix.dealerOffersServing.api.v1.DealerOffersDebug;
3
+ var DealerOffersServing = wrapper.wix.dealerOffersServing.api.v1.DealerOffersServing;
4
+ /**
5
+ * Debug offer in a given context.
6
+ * Will return the offer and its audience result.
7
+ * Only for permitted users.
8
+ * Context is always explicit and can contains information such as userId, siteId, loggedInAccounnt etc.
9
+ */
10
+ export function debugOffer(payload) {
11
+ var serviceArtifactId = 'com.wixpress.dealer-offers-serving-service';
12
+ var serviceProtoClass = DealerOffersDebug;
13
+ var methodName = 'debugOffer';
14
+ var requestData = payload;
15
+ return {
16
+ serviceProtoClass: serviceProtoClass,
17
+ serviceArtifactId: serviceArtifactId,
18
+ methodName: methodName,
19
+ requestData: requestData,
20
+ };
21
+ }
22
+ /** Get a single offer with creative. */
23
+ export function getOffer(payload) {
24
+ var serviceArtifactId = 'com.wixpress.dealer-offers-serving-service';
25
+ var serviceProtoClass = DealerOffersDebug;
26
+ var methodName = 'getOffer';
27
+ var requestData = payload;
28
+ return {
29
+ serviceProtoClass: serviceProtoClass,
30
+ serviceArtifactId: serviceArtifactId,
31
+ methodName: methodName,
32
+ requestData: requestData,
33
+ };
34
+ }
35
+ /**
36
+ * Get all offers the user or site are eligible for.
37
+ * A realEstateId (placementId) defines the product location of the offers and is always required,
38
+ * Context is taken implicitly from request with authorization header and wix session.
39
+ */
40
+ export function listOffers(payload) {
41
+ var serviceArtifactId = 'com.wixpress.dealer-offers-serving-service';
42
+ var serviceProtoClass = DealerOffersServing;
43
+ var methodName = 'listOffers';
44
+ var requestData = payload;
45
+ return {
46
+ serviceProtoClass: serviceProtoClass,
47
+ serviceArtifactId: serviceArtifactId,
48
+ methodName: methodName,
49
+ requestData: requestData,
50
+ };
51
+ }
52
+ /**
53
+ * Get a single offer if the user or site are eligible for.
54
+ * Context is taken implicitly from request with authorization header and wix session.
55
+ */
56
+ export function resolveOffer(payload) {
57
+ var serviceArtifactId = 'com.wixpress.dealer-offers-serving-service';
58
+ var serviceProtoClass = DealerOffersServing;
59
+ var methodName = 'resolveOffer';
60
+ var requestData = payload;
61
+ return {
62
+ serviceProtoClass: serviceProtoClass,
63
+ serviceArtifactId: serviceArtifactId,
64
+ methodName: methodName,
65
+ requestData: requestData,
66
+ };
67
+ }
68
+ /**
69
+ * Get all offers the user or site are eligible for.
70
+ * This is a bulk request for more then one realEstate (placement),
71
+ * max limit of 30 offers is applied for each placement.
72
+ * Context is taken implicitly from request with authorization header and wix session.
73
+ */
74
+ export function listOffersBulk(payload) {
75
+ var serviceArtifactId = 'com.wixpress.dealer-offers-serving-service';
76
+ var serviceProtoClass = DealerOffersServing;
77
+ var methodName = 'listOffersBulk';
78
+ var requestData = payload;
79
+ return {
80
+ serviceProtoClass: serviceProtoClass,
81
+ serviceArtifactId: serviceArtifactId,
82
+ methodName: methodName,
83
+ requestData: requestData,
84
+ };
85
+ }
86
+ //# sourceMappingURL=rpc.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc.impl.js","sourceRoot":"","sources":["../../rpc.imp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