@wix/referral 1.0.27 → 1.0.28
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.
- package/build/cjs/context.js +1 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -0
- package/package.json +7 -7
- package/type-bundles/context.bundle.d.ts +504 -359
- package/type-bundles/index.bundle.d.ts +504 -359
- package/type-bundles/meta.bundle.d.ts +1 -167
|
@@ -254,85 +254,6 @@ interface GetReferralProgramResponse$1 {
|
|
|
254
254
|
/** Retrieved referral program. */
|
|
255
255
|
referralProgram?: ReferralProgram$1;
|
|
256
256
|
}
|
|
257
|
-
interface QueryReferralProgramsRequest$1 {
|
|
258
|
-
/** Query options. */
|
|
259
|
-
query: CursorQuery$9;
|
|
260
|
-
}
|
|
261
|
-
interface CursorQuery$9 extends CursorQueryPagingMethodOneOf$9 {
|
|
262
|
-
/**
|
|
263
|
-
* Cursor paging options.
|
|
264
|
-
*
|
|
265
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
266
|
-
*/
|
|
267
|
-
cursorPaging?: CursorPaging$9;
|
|
268
|
-
/**
|
|
269
|
-
* Filter object.
|
|
270
|
-
*
|
|
271
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
272
|
-
*/
|
|
273
|
-
filter?: Record<string, any> | null;
|
|
274
|
-
/**
|
|
275
|
-
* Sort object.
|
|
276
|
-
*
|
|
277
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
278
|
-
*/
|
|
279
|
-
sort?: Sorting$9[];
|
|
280
|
-
}
|
|
281
|
-
/** @oneof */
|
|
282
|
-
interface CursorQueryPagingMethodOneOf$9 {
|
|
283
|
-
/**
|
|
284
|
-
* Cursor paging options.
|
|
285
|
-
*
|
|
286
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
287
|
-
*/
|
|
288
|
-
cursorPaging?: CursorPaging$9;
|
|
289
|
-
}
|
|
290
|
-
interface Sorting$9 {
|
|
291
|
-
/** Name of the field to sort by. */
|
|
292
|
-
fieldName?: string;
|
|
293
|
-
/** Sort order. */
|
|
294
|
-
order?: SortOrder$9;
|
|
295
|
-
}
|
|
296
|
-
declare enum SortOrder$9 {
|
|
297
|
-
ASC = "ASC",
|
|
298
|
-
DESC = "DESC"
|
|
299
|
-
}
|
|
300
|
-
interface CursorPaging$9 {
|
|
301
|
-
/** Maximum number of items to return in the results. */
|
|
302
|
-
limit?: number | null;
|
|
303
|
-
/**
|
|
304
|
-
* Pointer to the next or previous page in the list of results.
|
|
305
|
-
*
|
|
306
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
307
|
-
* Not relevant for the first request.
|
|
308
|
-
*/
|
|
309
|
-
cursor?: string | null;
|
|
310
|
-
}
|
|
311
|
-
interface QueryReferralProgramsResponse$1 {
|
|
312
|
-
/** Referral programs matching the query. */
|
|
313
|
-
referralPrograms?: ReferralProgram$1[];
|
|
314
|
-
/** Paging metadata. */
|
|
315
|
-
pagingMetadata?: CursorPagingMetadata$9;
|
|
316
|
-
}
|
|
317
|
-
interface CursorPagingMetadata$9 {
|
|
318
|
-
/** Number of items returned in current page. */
|
|
319
|
-
count?: number | null;
|
|
320
|
-
/** Cursor strings that point to the next page, previous page, or both. */
|
|
321
|
-
cursors?: Cursors$9;
|
|
322
|
-
/**
|
|
323
|
-
* Whether there are more pages to retrieve following the current page.
|
|
324
|
-
*
|
|
325
|
-
* + `true`: Another page of results can be retrieved.
|
|
326
|
-
* + `false`: This is the last page.
|
|
327
|
-
*/
|
|
328
|
-
hasNext?: boolean | null;
|
|
329
|
-
}
|
|
330
|
-
interface Cursors$9 {
|
|
331
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
332
|
-
next?: string | null;
|
|
333
|
-
/** Cursor pointing to the previous page in the list of results. */
|
|
334
|
-
prev?: string | null;
|
|
335
|
-
}
|
|
336
257
|
interface UpdateReferralProgramRequest$1 {
|
|
337
258
|
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
338
259
|
referralProgram: ReferralProgram$1;
|
|
@@ -436,9 +357,6 @@ interface ReferralProgramNonNullableFields$1 {
|
|
|
436
357
|
interface GetReferralProgramResponseNonNullableFields$1 {
|
|
437
358
|
referralProgram?: ReferralProgramNonNullableFields$1;
|
|
438
359
|
}
|
|
439
|
-
interface QueryReferralProgramsResponseNonNullableFields$1 {
|
|
440
|
-
referralPrograms: ReferralProgramNonNullableFields$1[];
|
|
441
|
-
}
|
|
442
360
|
interface UpdateReferralProgramResponseNonNullableFields$1 {
|
|
443
361
|
referralProgram?: ReferralProgramNonNullableFields$1;
|
|
444
362
|
}
|
|
@@ -718,85 +636,6 @@ interface GetReferralProgramResponse {
|
|
|
718
636
|
/** Retrieved referral program. */
|
|
719
637
|
referralProgram?: ReferralProgram;
|
|
720
638
|
}
|
|
721
|
-
interface QueryReferralProgramsRequest {
|
|
722
|
-
/** Query options. */
|
|
723
|
-
query: CursorQuery$8;
|
|
724
|
-
}
|
|
725
|
-
interface CursorQuery$8 extends CursorQueryPagingMethodOneOf$8 {
|
|
726
|
-
/**
|
|
727
|
-
* Cursor paging options.
|
|
728
|
-
*
|
|
729
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
730
|
-
*/
|
|
731
|
-
cursorPaging?: CursorPaging$8;
|
|
732
|
-
/**
|
|
733
|
-
* Filter object.
|
|
734
|
-
*
|
|
735
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
736
|
-
*/
|
|
737
|
-
filter?: Record<string, any> | null;
|
|
738
|
-
/**
|
|
739
|
-
* Sort object.
|
|
740
|
-
*
|
|
741
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
742
|
-
*/
|
|
743
|
-
sort?: Sorting$8[];
|
|
744
|
-
}
|
|
745
|
-
/** @oneof */
|
|
746
|
-
interface CursorQueryPagingMethodOneOf$8 {
|
|
747
|
-
/**
|
|
748
|
-
* Cursor paging options.
|
|
749
|
-
*
|
|
750
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
751
|
-
*/
|
|
752
|
-
cursorPaging?: CursorPaging$8;
|
|
753
|
-
}
|
|
754
|
-
interface Sorting$8 {
|
|
755
|
-
/** Name of the field to sort by. */
|
|
756
|
-
fieldName?: string;
|
|
757
|
-
/** Sort order. */
|
|
758
|
-
order?: SortOrder$8;
|
|
759
|
-
}
|
|
760
|
-
declare enum SortOrder$8 {
|
|
761
|
-
ASC = "ASC",
|
|
762
|
-
DESC = "DESC"
|
|
763
|
-
}
|
|
764
|
-
interface CursorPaging$8 {
|
|
765
|
-
/** Maximum number of items to return in the results. */
|
|
766
|
-
limit?: number | null;
|
|
767
|
-
/**
|
|
768
|
-
* Pointer to the next or previous page in the list of results.
|
|
769
|
-
*
|
|
770
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
771
|
-
* Not relevant for the first request.
|
|
772
|
-
*/
|
|
773
|
-
cursor?: string | null;
|
|
774
|
-
}
|
|
775
|
-
interface QueryReferralProgramsResponse {
|
|
776
|
-
/** Referral programs matching the query. */
|
|
777
|
-
referralPrograms?: ReferralProgram[];
|
|
778
|
-
/** Paging metadata. */
|
|
779
|
-
pagingMetadata?: CursorPagingMetadata$8;
|
|
780
|
-
}
|
|
781
|
-
interface CursorPagingMetadata$8 {
|
|
782
|
-
/** Number of items returned in current page. */
|
|
783
|
-
count?: number | null;
|
|
784
|
-
/** Cursor strings that point to the next page, previous page, or both. */
|
|
785
|
-
cursors?: Cursors$8;
|
|
786
|
-
/**
|
|
787
|
-
* Whether there are more pages to retrieve following the current page.
|
|
788
|
-
*
|
|
789
|
-
* + `true`: Another page of results can be retrieved.
|
|
790
|
-
* + `false`: This is the last page.
|
|
791
|
-
*/
|
|
792
|
-
hasNext?: boolean | null;
|
|
793
|
-
}
|
|
794
|
-
interface Cursors$8 {
|
|
795
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
796
|
-
next?: string | null;
|
|
797
|
-
/** Cursor pointing to the previous page in the list of results. */
|
|
798
|
-
prev?: string | null;
|
|
799
|
-
}
|
|
800
639
|
interface UpdateReferralProgramRequest {
|
|
801
640
|
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
802
641
|
referralProgram: ReferralProgram;
|
|
@@ -900,9 +739,6 @@ interface ReferralProgramNonNullableFields {
|
|
|
900
739
|
interface GetReferralProgramResponseNonNullableFields {
|
|
901
740
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
902
741
|
}
|
|
903
|
-
interface QueryReferralProgramsResponseNonNullableFields {
|
|
904
|
-
referralPrograms: ReferralProgramNonNullableFields[];
|
|
905
|
-
}
|
|
906
742
|
interface UpdateReferralProgramResponseNonNullableFields {
|
|
907
743
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
908
744
|
}
|
|
@@ -937,7 +773,6 @@ type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
937
773
|
__originalResponseType: R;
|
|
938
774
|
};
|
|
939
775
|
declare function getReferralProgram(): __PublicMethodMetaInfo$4<'GET', {}, GetReferralProgramRequest, GetReferralProgramRequest$1, GetReferralProgramResponse & GetReferralProgramResponseNonNullableFields, GetReferralProgramResponse$1 & GetReferralProgramResponseNonNullableFields$1>;
|
|
940
|
-
declare function queryReferralPrograms(): __PublicMethodMetaInfo$4<'POST', {}, QueryReferralProgramsRequest, QueryReferralProgramsRequest$1, QueryReferralProgramsResponse & QueryReferralProgramsResponseNonNullableFields, QueryReferralProgramsResponse$1 & QueryReferralProgramsResponseNonNullableFields$1>;
|
|
941
776
|
declare function updateReferralProgram(): __PublicMethodMetaInfo$4<'PATCH', {}, UpdateReferralProgramRequest, UpdateReferralProgramRequest$1, UpdateReferralProgramResponse & UpdateReferralProgramResponseNonNullableFields, UpdateReferralProgramResponse$1 & UpdateReferralProgramResponseNonNullableFields$1>;
|
|
942
777
|
declare function activateReferralProgram(): __PublicMethodMetaInfo$4<'PATCH', {}, ActivateReferralProgramRequest, ActivateReferralProgramRequest$1, ActivateReferralProgramResponse & ActivateReferralProgramResponseNonNullableFields, ActivateReferralProgramResponse$1 & ActivateReferralProgramResponseNonNullableFields$1>;
|
|
943
778
|
declare function pauseReferralProgram(): __PublicMethodMetaInfo$4<'PATCH', {}, PauseReferralProgramRequest, PauseReferralProgramRequest$1, PauseReferralProgramResponse & PauseReferralProgramResponseNonNullableFields, PauseReferralProgramResponse$1 & PauseReferralProgramResponseNonNullableFields$1>;
|
|
@@ -951,10 +786,9 @@ declare const meta$4_getAiSocialMediaPostsSuggestions: typeof getAiSocialMediaPo
|
|
|
951
786
|
declare const meta$4_getReferralProgram: typeof getReferralProgram;
|
|
952
787
|
declare const meta$4_getReferralProgramPremiumFeatures: typeof getReferralProgramPremiumFeatures;
|
|
953
788
|
declare const meta$4_pauseReferralProgram: typeof pauseReferralProgram;
|
|
954
|
-
declare const meta$4_queryReferralPrograms: typeof queryReferralPrograms;
|
|
955
789
|
declare const meta$4_updateReferralProgram: typeof updateReferralProgram;
|
|
956
790
|
declare namespace meta$4 {
|
|
957
|
-
export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_activateReferralProgram as activateReferralProgram, meta$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, meta$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, meta$4_getReferralProgram as getReferralProgram, meta$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, meta$4_pauseReferralProgram as pauseReferralProgram, meta$
|
|
791
|
+
export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_activateReferralProgram as activateReferralProgram, meta$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, meta$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, meta$4_getReferralProgram as getReferralProgram, meta$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, meta$4_pauseReferralProgram as pauseReferralProgram, meta$4_updateReferralProgram as updateReferralProgram };
|
|
958
792
|
}
|
|
959
793
|
|
|
960
794
|
interface ReferralEvent$1 extends ReferralEventEventTypeOneOf$1 {
|