@wix/redirects 1.0.7 → 1.0.8

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.
@@ -32,7 +32,7 @@ export interface CreateRedirectSessionRequest extends CreateRedirectSessionReque
32
32
  /**
33
33
  * Details of pages to redirect the visitor back to on the Wix Headless client site.
34
34
  *
35
- * **Note**: For an authentication redirect, don't pass a post-flow URL here. Instead, pass one in `auth.authRequest.redirectUri`.
35
+ * **Note**: For an authentication redirect, don't pass a post-flow URL here. Instead, pass one in `options.auth.authRequest.redirectUri`.
36
36
  */
37
37
  callbacks?: CallbackParams;
38
38
  /** Optional preferences for customizing redirection to Wix pages. */
@@ -62,9 +62,9 @@ export interface RedirectSessionBookingsCheckoutParams {
62
62
  * Default: If you don't specify a timezone, the timezone in `slotAvailability.slot.timezone` is used.
63
63
  */
64
64
  timezone?: string;
65
- /** **Required.**. ID of the service for which to select the slot. Use [`queryServices()`](https://dev.wix.com/api/sdk/bookings/services/queryservices) to obtain a service ID. */
65
+ /** __Required.__ ID of the service for which to select the slot. Use [`queryServices()`](https://dev.wix.com/api/sdk/bookings/services/queryservices) to obtain a service ID. */
66
66
  serviceId?: string;
67
- /** **Required.** The calendar slot to check out. */
67
+ /** __Required.__ The calendar slot to check out. */
68
68
  slotAvailability?: SlotAvailability;
69
69
  }
70
70
  export interface SlotAvailability {
@@ -193,17 +193,17 @@ export interface BookingPolicyViolations {
193
193
  bookOnlineDisabled?: boolean | null;
194
194
  }
195
195
  export interface RedirectSessionEcomCheckoutParams {
196
- /** **Required.** ID of the checkout to process. Use [`createCheckout()`](https://dev.wix.com/api/sdk/ecom/checkout/createcheckout) or [`createCheckoutFromCurrentCart()`](https://dev.wix.com/api/sdk/ecom/currentcart/createcheckoutfromcurrentcart) to create a checkout and obtain an ID. */
196
+ /** __Required.__ ID of the checkout to process. Use [`createCheckout()`](https://dev.wix.com/api/sdk/ecom/checkout/createcheckout) or [`createCheckoutFromCurrentCart()`](https://dev.wix.com/api/sdk/ecom/currentcart/createcheckoutfromcurrentcart) to create a checkout and obtain an ID. */
197
197
  checkoutId?: string;
198
198
  }
199
199
  export interface RedirectSessionEventsCheckoutParams {
200
- /** **Required.** ID of the temporary event reservation. Use [`createReservation()`](https://dev.wix.com/api/sdk/events/checkout/createreservation) to reserve a ticket temporarily and obtain a reservation ID. */
200
+ /** __Required.__ ID of the temporary event reservation. Use [`createReservation()`](https://dev.wix.com/api/sdk/events/checkout/createreservation) to reserve a ticket temporarily and obtain a reservation ID. */
201
201
  reservationId?: string;
202
- /** **Required.** URL-friendly event slug, generated from the event title of the event. For example, `my-event-4`. Use [`listEvents()`](https://dev.wix.com/api/sdk/events/wixevents/listevents) to obtain an event slug. */
202
+ /** __Required.__ URL-friendly event slug, generated from the event title of the event. For example, `my-event-4`. Use [`listEvents()`](https://dev.wix.com/api/sdk/events/wixevents/listevents) to obtain an event slug. */
203
203
  eventSlug?: string;
204
204
  }
205
205
  export interface RedirectSessionPaidPlansCheckoutParams {
206
- /** **Required.** ID of the paid plan selected. Use [`queryPublicPlans()`](https://dev.wix.com/api/sdk/pricing-plans/plans/querypublicplans) to obtain a paid plan ID. */
206
+ /** __Required.__ ID of the paid plan selected. Use [`queryPublicPlans()`](https://dev.wix.com/api/sdk/pricing-plans/plans/querypublicplans) to obtain a paid plan ID. */
207
207
  planId?: string;
208
208
  /**
209
209
  * For use when pricing plan selection is part of a checkout flow, only if the paid plan selection page is implemented on an external Wix Headless client site.
@@ -268,11 +268,11 @@ export interface AuthorizeRequest {
268
268
  errorDescription?: string | null;
269
269
  }
270
270
  export interface RedirectSessionLogoutParams {
271
- /** **Required.** ID of the OAuth app authorizing the client. */
271
+ /** __Required.__ ID of the OAuth app authorizing the client. */
272
272
  clientId?: string;
273
273
  }
274
274
  export interface RedirectSessionAuthParams {
275
- /** **Required.** The authorization request to send to the authorization server. */
275
+ /** __Required.__ The authorization request to send to the authorization server. */
276
276
  authRequest?: AuthorizeRequest;
277
277
  }
278
278
  export interface RedirectSessionMembersAccountParams {
@@ -397,6 +397,7 @@ export interface SignInURLResponse {
397
397
  * @public
398
398
  * @documentationMaturity preview
399
399
  * @requiredField CreateRedirectSessionRequest
400
+ * @param options - Options for creating a redirect session.
400
401
  */
401
402
  export declare function createRedirectSession(options?: CreateRedirectSessionOptions): Promise<CreateRedirectSessionResponse>;
402
403
  export interface CreateRedirectSessionOptions extends CreateRedirectSessionRequestIntentOneOf {
@@ -417,7 +418,7 @@ export interface CreateRedirectSessionOptions extends CreateRedirectSessionReque
417
418
  /**
418
419
  * Details of pages to redirect the visitor back to on the Wix Headless client site.
419
420
  *
420
- * **Note**: For an authentication redirect, don't pass a post-flow URL here. Instead, pass one in `auth.authRequest.redirectUri`.
421
+ * **Note**: For an authentication redirect, don't pass a post-flow URL here. Instead, pass one in `options.auth.authRequest.redirectUri`.
421
422
  */
422
423
  callbacks?: CallbackParams;
423
424
  /** Optional preferences for customizing redirection to Wix pages. */
@@ -94,6 +94,7 @@ const _createRedirectSessionResponse = {};
94
94
  * @public
95
95
  * @documentationMaturity preview
96
96
  * @requiredField CreateRedirectSessionRequest
97
+ * @param options - Options for creating a redirect session.
97
98
  */
98
99
  function createRedirectSession(options) {
99
100
  var _a, _b, _c;
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session.universal.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,4GAA8F;AAE9F,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,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,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AA/DD,sDA+DC"}
1
+ {"version":3,"file":"headless-v1-redirect-session.universal.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,4GAA8F;AAE9F,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA+K5B,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAyHD,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,qDAAqD;IACrD,sDAA6B,CAAA;IAC7B,0CAA0C;IAC1C,8CAAqB,CAAA;IACr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,EAAC;YAC9B,UAAU,EAAE,8BAA8B;YAC1C,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;gBAC/B,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAE/C,MAAM,OAAO,GACX,sCAAsC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAExE,KAAK,CAAC,iDAAiD,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAE7E,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AA/DD,sDA+DC"}
@@ -32,7 +32,7 @@ export interface CreateRedirectSessionRequest extends CreateRedirectSessionReque
32
32
  /**
33
33
  * Details of pages to redirect the visitor back to on the Wix Headless client site.
34
34
  *
35
- * **Note**: For an authentication redirect, don't pass a post-flow URL here. Instead, pass one in `auth.authRequest.redirectUri`.
35
+ * **Note**: For an authentication redirect, don't pass a post-flow URL here. Instead, pass one in `options.auth.authRequest.redirectUri`.
36
36
  */
37
37
  callbacks?: CallbackParams;
38
38
  /** Optional preferences for customizing redirection to Wix pages. */
@@ -62,9 +62,9 @@ export interface RedirectSessionBookingsCheckoutParams {
62
62
  * Default: If you don't specify a timezone, the timezone in `slotAvailability.slot.timezone` is used.
63
63
  */
64
64
  timezone?: string;
65
- /** **Required.**. ID of the service for which to select the slot. Use [`queryServices()`](https://dev.wix.com/api/sdk/bookings/services/queryservices) to obtain a service ID. */
65
+ /** __Required.__ ID of the service for which to select the slot. Use [`queryServices()`](https://dev.wix.com/api/sdk/bookings/services/queryservices) to obtain a service ID. */
66
66
  serviceId?: string;
67
- /** **Required.** The calendar slot to check out. */
67
+ /** __Required.__ The calendar slot to check out. */
68
68
  slotAvailability?: SlotAvailability;
69
69
  }
70
70
  export interface SlotAvailability {
@@ -193,17 +193,17 @@ export interface BookingPolicyViolations {
193
193
  bookOnlineDisabled?: boolean | null;
194
194
  }
195
195
  export interface RedirectSessionEcomCheckoutParams {
196
- /** **Required.** ID of the checkout to process. Use [`createCheckout()`](https://dev.wix.com/api/sdk/ecom/checkout/createcheckout) or [`createCheckoutFromCurrentCart()`](https://dev.wix.com/api/sdk/ecom/currentcart/createcheckoutfromcurrentcart) to create a checkout and obtain an ID. */
196
+ /** __Required.__ ID of the checkout to process. Use [`createCheckout()`](https://dev.wix.com/api/sdk/ecom/checkout/createcheckout) or [`createCheckoutFromCurrentCart()`](https://dev.wix.com/api/sdk/ecom/currentcart/createcheckoutfromcurrentcart) to create a checkout and obtain an ID. */
197
197
  checkoutId?: string;
198
198
  }
199
199
  export interface RedirectSessionEventsCheckoutParams {
200
- /** **Required.** ID of the temporary event reservation. Use [`createReservation()`](https://dev.wix.com/api/sdk/events/checkout/createreservation) to reserve a ticket temporarily and obtain a reservation ID. */
200
+ /** __Required.__ ID of the temporary event reservation. Use [`createReservation()`](https://dev.wix.com/api/sdk/events/checkout/createreservation) to reserve a ticket temporarily and obtain a reservation ID. */
201
201
  reservationId?: string;
202
- /** **Required.** URL-friendly event slug, generated from the event title of the event. For example, `my-event-4`. Use [`listEvents()`](https://dev.wix.com/api/sdk/events/wixevents/listevents) to obtain an event slug. */
202
+ /** __Required.__ URL-friendly event slug, generated from the event title of the event. For example, `my-event-4`. Use [`listEvents()`](https://dev.wix.com/api/sdk/events/wixevents/listevents) to obtain an event slug. */
203
203
  eventSlug?: string;
204
204
  }
205
205
  export interface RedirectSessionPaidPlansCheckoutParams {
206
- /** **Required.** ID of the paid plan selected. Use [`queryPublicPlans()`](https://dev.wix.com/api/sdk/pricing-plans/plans/querypublicplans) to obtain a paid plan ID. */
206
+ /** __Required.__ ID of the paid plan selected. Use [`queryPublicPlans()`](https://dev.wix.com/api/sdk/pricing-plans/plans/querypublicplans) to obtain a paid plan ID. */
207
207
  planId?: string;
208
208
  /**
209
209
  * For use when pricing plan selection is part of a checkout flow, only if the paid plan selection page is implemented on an external Wix Headless client site.
@@ -268,11 +268,11 @@ export interface AuthorizeRequest {
268
268
  errorDescription?: string | null;
269
269
  }
270
270
  export interface RedirectSessionLogoutParams {
271
- /** **Required.** ID of the OAuth app authorizing the client. */
271
+ /** __Required.__ ID of the OAuth app authorizing the client. */
272
272
  clientId?: string;
273
273
  }
274
274
  export interface RedirectSessionAuthParams {
275
- /** **Required.** The authorization request to send to the authorization server. */
275
+ /** __Required.__ The authorization request to send to the authorization server. */
276
276
  authRequest?: AuthorizeRequest;
277
277
  }
278
278
  export interface RedirectSessionMembersAccountParams {
@@ -397,6 +397,7 @@ export interface SignInURLResponse {
397
397
  * @public
398
398
  * @documentationMaturity preview
399
399
  * @requiredField CreateRedirectSessionRequest
400
+ * @param options - Options for creating a redirect session.
400
401
  */
401
402
  export declare function createRedirectSession(options?: CreateRedirectSessionOptions): Promise<CreateRedirectSessionResponse>;
402
403
  export interface CreateRedirectSessionOptions extends CreateRedirectSessionRequestIntentOneOf {
@@ -417,7 +418,7 @@ export interface CreateRedirectSessionOptions extends CreateRedirectSessionReque
417
418
  /**
418
419
  * Details of pages to redirect the visitor back to on the Wix Headless client site.
419
420
  *
420
- * **Note**: For an authentication redirect, don't pass a post-flow URL here. Instead, pass one in `auth.authRequest.redirectUri`.
421
+ * **Note**: For an authentication redirect, don't pass a post-flow URL here. Instead, pass one in `options.auth.authRequest.redirectUri`.
421
422
  */
422
423
  callbacks?: CallbackParams;
423
424
  /** Optional preferences for customizing redirection to Wix pages. */
@@ -72,6 +72,7 @@ const _createRedirectSessionResponse = {};
72
72
  * @public
73
73
  * @documentationMaturity preview
74
74
  * @requiredField CreateRedirectSessionRequest
75
+ * @param options - Options for creating a redirect session.
75
76
  */
76
77
  export function createRedirectSession(options) {
77
78
  var _a, _b, _c;
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session.universal.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAE9F,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA+K5B,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAA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"}
1
+ {"version":3,"file":"headless-v1-redirect-session.universal.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAE9F,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA+K5B,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAyHD,MAAM,CAAN,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,qDAAqD;IACrD,sDAA6B,CAAA;IAC7B,0CAA0C;IAC1C,8CAAqB,CAAA;IACrB,wCAAwC;IACxC,0CAAiB,CAAA;IACjB,4CAA4C;IAC5C,wDAA+B,CAAA;IAC/B,qCAAqC;IACrC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,KAArB,qBAAqB,QAWhC;AAwED,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,8BAA8B;IA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,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAE/C,MAAM,OAAO,GACX,sCAAsC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAExE,KAAK,CAAC,iDAAiD,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAE7E,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/redirects",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -33,5 +33,5 @@
33
33
  "groupId": "com.wixpress.public-sdk-autogen"
34
34
  }
35
35
  },
36
- "falconPackageHash": "b5220ae9722216ca90271d9aa83aaad3c9f3f4766386babe53a0cb90"
36
+ "falconPackageHash": "15374e20aef4eb5a6897a97a3a97de337e7074d77fd660615d86bd0b"
37
37
  }