@qonto/embed-sdk 0.68.0 → 0.70.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.
- package/dist/auth-links/client/auth-links.client.d.ts +1 -1
- package/dist/beneficiaries/beneficiaries.d.ts +1 -1
- package/dist/beneficiaries/beneficiaries.d.ts.map +1 -1
- package/dist/beneficiaries/client/beneficiaries.client.d.ts +1 -1
- package/dist/beneficiaries/client/beneficiaries.client.d.ts.map +1 -1
- package/dist/beneficiaries/index.server.d.ts +1 -1
- package/dist/cards/client/cards.client.d.ts +1 -1
- package/dist/cards/index.d.ts +2 -2
- package/dist/cards/server/cards.server.d.ts +1 -1
- package/dist/common/constants.d.ts +18 -0
- package/dist/common/constants.d.ts.map +1 -1
- package/dist/common/initialize/initialize.d.ts +22 -14
- package/dist/common/initialize/initialize.d.ts.map +1 -1
- package/dist/iframe/embed-iframe.d.ts +9 -0
- package/dist/iframe/embed-iframe.d.ts.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/mocks/handlers.d.ts +2 -1
- package/dist/mocks/handlers.d.ts.map +1 -1
- package/dist/organizations/client/organizations.client.d.ts +33 -1
- package/dist/organizations/client/organizations.client.d.ts.map +1 -1
- package/dist/organizations/index.d.ts +3 -0
- package/dist/organizations/index.d.ts.map +1 -1
- package/dist/organizations/index.server.d.ts +3 -0
- package/dist/organizations/index.server.d.ts.map +1 -1
- package/dist/organizations/server/organizations.server.d.ts +24 -1
- package/dist/organizations/server/organizations.server.d.ts.map +1 -1
- package/dist/organizations/shared/organizations.api.d.ts +11 -1
- package/dist/organizations/shared/organizations.api.d.ts.map +1 -1
- package/dist/organizations/shared/organizations.serializer.d.ts +2 -1
- package/dist/organizations/shared/organizations.serializer.d.ts.map +1 -1
- package/dist/organizations/shared/organizations.types.d.ts +54 -0
- package/dist/organizations/shared/organizations.types.d.ts.map +1 -1
- package/dist/payment-links/client/payment-links.client.d.ts +2 -2
- package/dist/server/_virtual/index.js +1 -1
- package/dist/server/_virtual/index2.js +1 -1
- package/dist/server/auth-links/client/auth-links.client.d.ts +1 -1
- package/dist/server/beneficiaries/beneficiaries.d.ts +1 -1
- package/dist/server/beneficiaries/beneficiaries.d.ts.map +1 -1
- package/dist/server/beneficiaries/client/beneficiaries.client.d.ts +1 -1
- package/dist/server/beneficiaries/client/beneficiaries.client.d.ts.map +1 -1
- package/dist/server/beneficiaries/index.server.d.ts +1 -1
- package/dist/server/cards/client/cards.client.d.ts +1 -1
- package/dist/server/cards/index.d.ts +2 -2
- package/dist/server/cards/server/cards.server.d.ts +1 -1
- package/dist/server/common/constants.d.ts +18 -0
- package/dist/server/common/constants.d.ts.map +1 -1
- package/dist/server/common/initialize/initialize.d.ts +22 -14
- package/dist/server/common/initialize/initialize.d.ts.map +1 -1
- package/dist/server/iframe/embed-iframe.d.ts +9 -0
- package/dist/server/iframe/embed-iframe.d.ts.map +1 -1
- package/dist/server/index.server.umd.js +1 -1
- package/dist/server/mocks/handlers.d.ts +2 -1
- package/dist/server/mocks/handlers.d.ts.map +1 -1
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js +1 -1
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/safe-stringify.js +1 -1
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-thrashed-cursor.js +1 -1
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +1 -1
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +1 -1
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +1 -1
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.9.10/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +1 -1
- package/dist/server/organizations/client/organizations.client.d.ts +33 -1
- package/dist/server/organizations/client/organizations.client.d.ts.map +1 -1
- package/dist/server/organizations/index.d.ts +3 -0
- package/dist/server/organizations/index.d.ts.map +1 -1
- package/dist/server/organizations/index.server.d.ts +3 -0
- package/dist/server/organizations/index.server.d.ts.map +1 -1
- package/dist/server/organizations/server/organizations.server.d.ts +24 -1
- package/dist/server/organizations/server/organizations.server.d.ts.map +1 -1
- package/dist/server/organizations/shared/organizations.api.d.ts +11 -1
- package/dist/server/organizations/shared/organizations.api.d.ts.map +1 -1
- package/dist/server/organizations/shared/organizations.serializer.d.ts +2 -1
- package/dist/server/organizations/shared/organizations.serializer.d.ts.map +1 -1
- package/dist/server/organizations/shared/organizations.types.d.ts +54 -0
- package/dist/server/organizations/shared/organizations.types.d.ts.map +1 -1
- package/dist/server/payment-links/client/payment-links.client.d.ts +2 -2
- package/dist/server/src/organizations/index.server.js +1 -1
- package/dist/server/src/organizations/server/organizations.server.js +1 -1
- package/dist/server/src/organizations/shared/organizations.api.js +1 -1
- package/dist/server/src/organizations/shared/organizations.serializer.js +1 -1
- package/dist/src/common/constants.js +1 -1
- package/dist/src/iframe/embed-iframe.js +1 -1
- package/dist/src/organizations/client/organizations.client.js +1 -1
- package/dist/src/organizations/index.js +1 -1
- package/dist/src/organizations/shared/organizations.api.js +1 -1
- package/dist/src/organizations/shared/organizations.serializer.js +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { Beneficiary, BeneficiaryDataObject } from '@beneficiaries/shared/beneficiaries.types';
|
|
2
2
|
import type { CardDataObject } from '@cards/shared/cards.types';
|
|
3
|
-
import type { BankAccountDataObject, OrganizationDataObject } from '@organizations/shared/organizations.types';
|
|
3
|
+
import type { BankAccountDataObject, MembershipDataObject, OrganizationDataObject } from '@organizations/shared/organizations.types';
|
|
4
4
|
import type { BulkTransferDataObject, BulkTransferSettings, NewBulkTransfer, NewBulkTransferWithBeneficiary } from '@sepa-transfers/bulk-transfers/shared/bulk-transfers.types';
|
|
5
5
|
import type { SepaTransferDataObject } from '@sepa-transfers/shared/sepa-transfers.types';
|
|
6
6
|
import type { TransactionDataObject } from '@transactions/shared/transactions.types';
|
|
7
7
|
export declare const INVALID_ACCESS_TOKEN = "INVALID_ACCESS_TOKEN";
|
|
8
8
|
export declare const mockedBankAccountsList: BankAccountDataObject[];
|
|
9
9
|
export declare const mockedOrganization: OrganizationDataObject;
|
|
10
|
+
export declare const mockedMembership: MembershipDataObject;
|
|
10
11
|
export declare const singleBeneficiary: BeneficiaryDataObject;
|
|
11
12
|
export declare const newBeneficiaryDbFields: {
|
|
12
13
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/mocks/handlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACtB,MAAM,2CAA2C,CAAC;AAGnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAMhE,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,2CAA2C,CAAC;AAInD,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EAEpB,eAAe,EAEf,8BAA8B,EAC/B,MAAM,4DAA4D,CAAC;AAEpE,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,6CAA6C,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAIrF,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAK3D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA+BzD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,sBAchC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,qBAY/B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;CAOlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EAe1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAkBpC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAqBrE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,sBAqBxC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAoBrE,CAAC;AAEF,eAAO,MAAM,wBAAwB,iEAC2B,CAAC;AAEjE,eAAO,MAAM,YAAY,EAAE,cAuD1B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,qBA2CzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA8EzD,CAAC;AAGF,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAE3D,eAAO,MAAM,wBAAwB,EAAE,WAYtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,eAKtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,8BAKnC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,oBAAoB,CAAC,eAAe,CAI7E,CAAC;AAEJ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;CAiB1C,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;CAiB7C,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;CAuBzC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/mocks/handlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACtB,MAAM,2CAA2C,CAAC;AAGnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAMhE,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,2CAA2C,CAAC;AAInD,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EAEpB,eAAe,EAEf,8BAA8B,EAC/B,MAAM,4DAA4D,CAAC;AAEpE,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,6CAA6C,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAIrF,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAK3D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA+BzD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,sBAchC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,oBAW9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,qBAY/B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;CAOlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EAe1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAkBpC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAqBrE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,sBAqBxC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAoBrE,CAAC;AAEF,eAAO,MAAM,wBAAwB,iEAC2B,CAAC;AAEjE,eAAO,MAAM,YAAY,EAAE,cAuD1B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,qBA2CzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA8EzD,CAAC;AAGF,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAE3D,eAAO,MAAM,wBAAwB,EAAE,WAYtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,eAKtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,8BAKnC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,oBAAoB,CAAC,eAAe,CAI7E,CAAC;AAEJ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;CAiB1C,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;CAiB7C,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;CAuBzC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,eAAO,MAAM,WAAW,6BAi9BvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__values as r}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import n from"../../../../../../../../../_virtual/
|
|
1
|
+
import{__values as r}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import n from"../../../../../../../../../_virtual/index.js";function e(r,e){return new n((function(n){r.subscribe({next:function(r){e(r).then((function(r){return n.next(r)})).catch((function(r){return n.error(r)}))},error:function(r){n.error(r)},complete:function(){n.complete()}})}))}function t(e,t){return new n((function(n){var l=!1,o=new Set,u=function(){var n,e;l=!0;try{for(var t=r(o),u=t.next();!u.done;u=t.next()){var c=u.value;try{c.unsubscribe()}catch(r){}}}catch(r){n={error:r}}finally{try{u&&!u.done&&(e=t.return)&&e.call(t)}finally{if(n)throw n.error}}o.clear()},c=function(r){var e=r.subscribe({next:function(r){l||n.next(r)},error:function(r){l||(l=!0,n.error(r),u())},complete:function(){o.delete(e),l||0!==o.size||(n.complete(),u(),l=!0)}});o.add(e)};return c(e),c(t),u}))}function l(e){var t=new Set,l=null;function o(){null==l||l.unsubscribe(),l=null,t.clear()}return new n((function(n){return t.add(n),null===l&&(l=e.subscribe({next:function(n){var e,l,o;try{for(var u=r(t),c=u.next();!c.done;c=u.next()){var i=c.value;null===(o=i.next)||void 0===o||o.call(i,n)}}catch(r){e={error:r}}finally{try{c&&!c.done&&(l=u.return)&&l.call(u)}finally{if(e)throw e.error}}},error:function(n){var e,l,u;try{for(var c=r(t),i=c.next();!i.done;i=c.next()){var a=i.value;null===(u=a.error)||void 0===u||u.call(a,n)}}catch(r){e={error:r}}finally{try{i&&!i.done&&(l=c.return)&&l.call(c)}finally{if(e)throw e.error}}o()},complete:function(){var n,e,l;try{for(var u=r(t),c=u.next();!c.done;c=u.next()){var i=c.value;null===(l=i.complete)||void 0===l||l.call(i)}}catch(r){n={error:r}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}o()}})),function(){t.delete(n),0===t.size&&l&&(l.unsubscribe(),l=null)}}))}export{n as Observable,e as asyncMap,t as merge,l as multicast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as r from"../../../../../../../../../_virtual/
|
|
1
|
+
import*as r from"../../../../../../../../../_virtual/index2.js";import i from"../../../../../../../../../_virtual/index2.js";var o=i||r;export{o as safeJsonStringify};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{AMPLITUDE_THRASHED_CURSOR_EVENT as e}from"../constants.js";import{isUrlAllowed as n}from"../helpers.js";import t from"../../../../../../../../../_virtual/
|
|
1
|
+
import{AMPLITUDE_THRASHED_CURSOR_EVENT as e}from"../constants.js";import{isUrlAllowed as n}from"../helpers.js";import t from"../../../../../../../../../_virtual/index.js";import"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";var r,i;!function(e){e.INCREASING="increasing",e.DECREASING="decreasing"}(r||(r={})),function(e){e.X="x",e.Y="y"}(i||(i={}));var s=function(e){var n=e.allWindowObservables.mouseMoveObservable;return new t((function(e){var t=null,s=null,o=null;return n.subscribe((function(n){var l={x:n.clientX,y:n.clientY};null!==t?(l.x>t.x?(s===r.DECREASING&&e.next(i.X),s=r.INCREASING):l.x<t.x&&(s===r.INCREASING&&e.next(i.X),s=r.DECREASING),l.y>t.y?(o===r.DECREASING&&e.next(i.Y),o=r.INCREASING):l.y<t.y&&(o===r.INCREASING&&e.next(i.Y),o=r.DECREASING),t=l):t=l}))}))};function o(e){var n=e.changes,t=e.changesThreshold,r=e.thresholdMs;return!(n.length<t)&&n[n.length-1]-n[0]<r}function l(e){e.changes=[],e.startTime=void 0}function a(e){for(var n=e.changes,t=e.thresholdMs,r=0,i=n[n.length-1];r<n.length;r++){if(i-n[r]<t)break}0!==r&&(e.startTime=n[r],e.changes.splice(0,r))}var u=function(e){var n=e.mouseDirectionChangeObservable,r=e.directionChanges,s=void 0===r?20:r,u=e.thresholdMs,c=void 0===u?2e3:u;return new t((function(e){var t={changes:[],changesThreshold:s,thresholdMs:c},r={changes:[],changesThreshold:s,thresholdMs:c},u=void 0,h=null;function v(){void 0!==u&&(e.next(u),u=void 0,null!==h&&clearTimeout(h),l(t),l(r))}return n.subscribe((function(e){null!==h&&clearTimeout(h),function(e){var n=+Date.now();e.startTime=e.startTime||n;var t=e.changes,r=e.changesThreshold;t.push(n),t.length>r&&t.shift()}(e===i.X?t:r);var n=function(e,n){var t=void 0;if(o(e)&&(t=e.startTime),o(n)){var r=n.startTime;r&&(!t||r<t)&&(t=r)}return t}(t,r);return n?(u=u||n,h=setTimeout((function(){v(),h=null}),c)):v(),a(t),a(r),function(){null!==h&&(clearTimeout(h),h=null)}}))}))},c=function(t){var r=t.amplitude,i=t.options,o=t.allObservables,l=t.directionChanges,a=void 0===l?20:l,c=t.thresholdMs,h=void 0===c?2e3:c,v=s({allWindowObservables:o});return u({mouseDirectionChangeObservable:v,directionChanges:a,thresholdMs:h}).subscribe((function(t){n(i)&&r.track(e,void 0,{time:t})}))};export{s as createMouseDirectionChangeObservable,u as createThrashedCursorObservable,c as trackThrashedCursor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as t,__generator as o,__values as r,__read as n,__spreadArray as i}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{VERSION as l}from"./version.js";import{PLUGIN_NAME as s}from"./constants.js";import{createShouldTrackEvent as a}from"./helpers.js";import{enableVisualTagging as u}from"./libs/messenger.js";import{trackClicks as c}from"./autocapture/track-click.js";import{trackChange as d}from"./autocapture/track-change.js";import{trackActionClick as p}from"./autocapture/track-action-click.js";import{trackScroll as v}from"./autocapture/track-scroll.js";import{createClickObservable as b,createMutationObservable as m,createScrollObservable as f,createExposureObservable as g}from"./observables.js";import{groupLabeledEventIdsByEventType as h,createLabeledEventToTriggerMap as w,createTriggerEvaluator as E}from"./pageActions/triggers.js";import{DataExtractor as y}from"./data-extractor.js";import{trackExposure as x}from"./autocapture/track-exposure.js";import{fireViewportContentUpdated as O,onExposure as A}from"./autocapture/track-viewport-content-updated.js";import{DEFAULT_CSS_SELECTOR_ALLOWLIST as k,DEFAULT_ACTION_CLICK_ALLOWLIST as j,DEFAULT_EXPOSURE_DURATION as S,DEFAULT_DATA_ATTRIBUTE_PREFIX as C}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";import{getOrCreateWindowMessenger as _}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/base-window-messenger.js";import{enableBackgroundCapture as P}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/background-capture.js";import{getGlobalScope as T}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{multicast as L}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import D from"../../../../../../../../_virtual/
|
|
1
|
+
import{__assign as e,__awaiter as t,__generator as o,__values as r,__read as n,__spreadArray as i}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{VERSION as l}from"./version.js";import{PLUGIN_NAME as s}from"./constants.js";import{createShouldTrackEvent as a}from"./helpers.js";import{enableVisualTagging as u}from"./libs/messenger.js";import{trackClicks as c}from"./autocapture/track-click.js";import{trackChange as d}from"./autocapture/track-change.js";import{trackActionClick as p}from"./autocapture/track-action-click.js";import{trackScroll as v}from"./autocapture/track-scroll.js";import{createClickObservable as b,createMutationObservable as m,createScrollObservable as f,createExposureObservable as g}from"./observables.js";import{groupLabeledEventIdsByEventType as h,createLabeledEventToTriggerMap as w,createTriggerEvaluator as E}from"./pageActions/triggers.js";import{DataExtractor as y}from"./data-extractor.js";import{trackExposure as x}from"./autocapture/track-exposure.js";import{fireViewportContentUpdated as O,onExposure as A}from"./autocapture/track-viewport-content-updated.js";import{DEFAULT_CSS_SELECTOR_ALLOWLIST as k,DEFAULT_ACTION_CLICK_ALLOWLIST as j,DEFAULT_EXPOSURE_DURATION as S,DEFAULT_DATA_ATTRIBUTE_PREFIX as C}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";import{getOrCreateWindowMessenger as _}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/base-window-messenger.js";import{enableBackgroundCapture as P}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/background-capture.js";import{getGlobalScope as T}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{multicast as L}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import D from"../../../../../../../../_virtual/index.js";import{AMPLITUDE_ORIGINS_MAP as M}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/constants.js";var U;!function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable",e.ScrollObservable="scrollObservable",e.ExposureObservable="exposureObservable",e.BrowserErrorObservable="browserErrorObservable",e.SelectionObservable="selectionObservable",e.MouseMoveObservable="mouseMoveObservable"}(U||(U={}));var R=function(R,N){var Z,B,F,I,K,X,Y,q,z,G,H;void 0===R&&(R={}),null==N||N.diagnosticsClient.setTag("plugin.autocapture.version",l);var J=R.dataAttributePrefix,Q=void 0===J?C:J,V=R.visualTaggingOptions,W=void 0===V?{enabled:!0}:V;R.cssSelectorAllowlist=null!==(Z=R.cssSelectorAllowlist)&&void 0!==Z?Z:k,R.actionClickAllowlist=null!==(B=R.actionClickAllowlist)&&void 0!==B?B:j,R.debounceTime=null!==(F=R.debounceTime)&&void 0!==F?F:0;var $=null!==(X=null!==(K=null===(I=R.viewportContentUpdated)||void 0===I?void 0:I.exposureDuration)&&void 0!==K?K:R.exposureDuration)&&void 0!==X?X:S;R.viewportContentUpdated=e(e({},R.viewportContentUpdated),{exposureDuration:$}),R.pageUrlExcludelist=null===(Y=R.pageUrlExcludelist)||void 0===Y?void 0:Y.reduce((function(e,t){if("string"==typeof t&&e.push(t),t instanceof RegExp&&e.push(t),"object"==typeof t&&null!==t&&"pattern"in t)try{e.push(new RegExp(t.pattern))}catch(o){return console.warn("Invalid regex pattern: ".concat(t.pattern),o),e}return e}),[]);var ee,te=s,oe=[],re=new y(R,N),ne=new Set,ie=new Set,le=h(Object.values(null!==(z=null===(q=R.pageActions)||void 0===q?void 0:q.labeledEvents)&&void 0!==z?z:{})),se=w(null!==(H=null===(G=R.pageActions)||void 0===G?void 0:G.triggers)&&void 0!==H?H:[]),ae=E(le,se,re,R);return{name:te,type:"enrichment",setup:function(r,l){return t(void 0,void 0,void 0,(function(){var t,s,E,y,k,j,S,C,N,Z,B,F,I,K,X,Y,q,z,G,H,J;return o(this,(function(o){return"undefined"==typeof document||(t=!1,s={maxX:void 0,maxY:void 0},r.fetchRemoteConfig&&(r.remoteConfigClient?r.remoteConfigClient.subscribe("configs.analyticsSDK.pageActions","all",(function(t){!function(t){var o,r;t&&(R.pageActions=e(e({},R.pageActions),t),le=h(Object.values(null!==(o=R.pageActions.labeledEvents)&&void 0!==o?o:{})),se=w(null!==(r=R.pageActions.triggers)&&void 0!==r?r:[]),ae.update(le,se,R))}(t)})):r.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),E=a(R,R.cssSelectorAllowlist),y=a(R,R.actionClickAllowlist),k=function(){var e,t,o=L(b().map((function(e){return re.addAdditionalEventProperties(e,"click",R.cssSelectorAllowlist,Q)}))),r=L(new D((function(e){var t,o=function(t){var o=re.addAdditionalEventProperties(t,"change",R.cssSelectorAllowlist,Q);e.next(o)};return null===(t=T())||void 0===t||t.document.addEventListener("change",o,{capture:!0}),function(){var e;return null===(e=T())||void 0===e?void 0:e.document.removeEventListener("change",o)}})));window.navigation&&(t=L(new D((function(e){var t=function(t){var o=re.addAdditionalEventProperties(t,"navigate",R.cssSelectorAllowlist,Q);e.next(o)};return window.navigation.addEventListener("navigate",t),function(){window.navigation.removeEventListener("navigate",t)}}))));var n=L(m().map((function(e){return re.addAdditionalEventProperties(e,"mutation",R.cssSelectorAllowlist,Q)}))),i=f(),l=g(n,R.cssSelectorAllowlist);return(e={})[U.ChangeObservable]=r,e[U.ClickObservable]=o,e[U.MutationObservable]=n,e[U.NavigateObservable]=t,e[U.ScrollObservable]=i,e[U.ExposureObservable]=l,e}(),j=c({allObservables:k,amplitude:l,shouldTrackEvent:E,evaluateTriggers:ae.evaluate.bind(ae)}),oe.push(j),S=d({allObservables:k,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re.getEventProperties.apply(re,i(i([],n(e),!1),[Q],!1))},amplitude:l,shouldTrackEvent:E,evaluateTriggers:ae.evaluate.bind(ae)}),oe.push(S),C=p({allObservables:k,options:R,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re.getEventProperties.apply(re,i(i([],n(e),!1),[Q],!1))},amplitude:l,shouldTrackEvent:E,shouldTrackActionClick:y}),C&&oe.push(C),N=v({allObservables:k}),oe.push(N),Z={},B=T(),F=function(e){e&&t||(setTimeout((function(){t=!1}),100),t=!0,O({amplitude:l,scrollTracker:N,currentElementExposed:ie,elementExposedForPage:ne,exposureTracker:Z.exposure,isPageEnd:e,lastScroll:s}))},I=function(e){A(e,ne,ie,F)},Z.exposure=x({allObservables:k,onExposure:I,dataExtractor:re,exposureDuration:$}),Z.exposure&&oe.push(Z.exposure),K=function(){F(!0)},null==B||B.addEventListener("beforeunload",K),ee=function(){null==B||B.removeEventListener("beforeunload",K)},oe.push({unsubscribe:function(){return ee()}}),(X=k[U.NavigateObservable])?oe.push(X.subscribe((function(){F(!0)}))):B&&(Y=function(){F(!0)},B.addEventListener("popstate",Y),q=B.history.pushState,B.history&&q&&(B.history.pushState=new Proxy(q,{apply:function(e,t,o){var r=n(o,3),i=r[0],l=r[1],s=r[2];e.apply(t,[i,l,s]),F(!0)}})),oe.push({unsubscribe:function(){B.removeEventListener("popstate",Y),B.history&&q&&(B.history.pushState=q)}})),null===(J=null==r?void 0:r.loggerProvider)||void 0===J||J.log("".concat(te," has been successfully added.")),window.opener&&W.enabled&&(z=R.cssSelectorAllowlist,G=R.actionClickAllowlist,H=_(),u(H,{dataExtractor:re,isElementSelectable:a(R,i(i([],n(z),!1),n(G),!1)),cssSelectorAllowlist:z,actionClickAllowlist:G}),P(H),H.setup(e({logger:null==r?void 0:r.loggerProvider},(null==r?void 0:r.serverZone)&&{endpoint:M[r.serverZone]})))),[2]}))}))},execute:function(e){return t(void 0,void 0,void 0,(function(){return o(this,(function(t){return[2,e]}))}))},teardown:function(){return t(void 0,void 0,void 0,(function(){var e,t,n,i;return o(this,(function(o){try{for(e=r(oe),t=e.next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}return[2]}))}))}}};export{U as ObservablesEnum,R as autocapturePlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__spreadArray as e,__read as r,__awaiter as t,__generator as o,__values as n,__assign as i}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{FRUSTRATION_PLUGIN_NAME as a}from"./constants.js";import{createShouldTrackEvent as s}from"./helpers.js";import{trackDeadClick as l}from"./autocapture/track-dead-click.js";import{trackRageClicks as c}from"./autocapture/track-rage-click.js";import{ObservablesEnum as u}from"./autocapture-plugin.js";import{createClickObservable as d,createErrorObservable as m,createMutationObservable as v,createMouseMoveObservable as p}from"./observables.js";import{DataExtractor as f}from"./data-extractor.js";import{trackErrorClicks as h}from"./autocapture/track-error-click.js";import{trackThrashedCursor as b}from"./autocapture/track-thrashed-cursor.js";import{DEFAULT_DATA_ATTRIBUTE_PREFIX as g}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";import{DEFAULT_RAGE_CLICK_ALLOWLIST as w,DEFAULT_DEAD_CLICK_ALLOWLIST as C,DEFAULT_ERROR_CLICK_ALLOWLIST as k}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js";import{multicast as y}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import j from"../../../../../../../../_virtual/
|
|
1
|
+
import{__spreadArray as e,__read as r,__awaiter as t,__generator as o,__values as n,__assign as i}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{FRUSTRATION_PLUGIN_NAME as a}from"./constants.js";import{createShouldTrackEvent as s}from"./helpers.js";import{trackDeadClick as l}from"./autocapture/track-dead-click.js";import{trackRageClicks as c}from"./autocapture/track-rage-click.js";import{ObservablesEnum as u}from"./autocapture-plugin.js";import{createClickObservable as d,createErrorObservable as m,createMutationObservable as v,createMouseMoveObservable as p}from"./observables.js";import{DataExtractor as f}from"./data-extractor.js";import{trackErrorClicks as h}from"./autocapture/track-error-click.js";import{trackThrashedCursor as b}from"./autocapture/track-thrashed-cursor.js";import{DEFAULT_DATA_ATTRIBUTE_PREFIX as g}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";import{DEFAULT_RAGE_CLICK_ALLOWLIST as w,DEFAULT_DEAD_CLICK_ALLOWLIST as C,DEFAULT_ERROR_CLICK_ALLOWLIST as k}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js";import{multicast as y}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import j from"../../../../../../../../_virtual/index.js";function E(e,r,t,o){if(!o)return[];var n=e[r];return"object"==typeof n&&null!==n&&"cssSelectorAllowlist"in n&&Array.isArray(n.cssSelectorAllowlist)?n.cssSelectorAllowlist:t}var A=4e3,_=function(_){var x;void 0===_&&(_={});var O=a,P=[],T=!1!==_.errorClicks;_.errorClicks||(T=!1);var S=!1!==_.deadClicks&&null!==_.deadClicks,L=!1!==_.rageClicks&&null!==_.rageClicks,M=!1!==_.thrashedCursor&&null!==_.thrashedCursor;_.thrashedCursor||(M=!1);var N=E(_,"rageClicks",w,L),R=E(_,"deadClicks",C,S),B=E(_,"errorClicks",k,T),D=null!==(x=_.dataAttributePrefix)&&void 0!==x?x:g,I=new f(_),U=e([],r(new Set(e(e(e([],r(N),!1),r(R),!1),r(B),!1))),!1);return{name:O,type:"enrichment",setup:function(e,r){return t(void 0,void 0,void 0,(function(){var t,n,a,f,g,w,C,k,E,x,X;return o(this,(function(o){return"undefined"==typeof document||(t=function(){var e,r,t=y(d("pointerdown").map((function(e){return I.addAdditionalEventProperties(e,"click",U,D,!0)}))),o=y(m().map((function(e){return I.addTypeAndTimestamp(e,"error")}))),n=y(v().map((function(e){return I.addAdditionalEventProperties(e,"mutation",U,D)})));if(window.navigation){var a=new j((function(e){var r=function(r){e.next(i(i({},r),{type:"navigate"}))};return window.navigation.addEventListener("navigate",r),function(){window.navigation.removeEventListener("navigate",r)}}));r=y(a.map((function(e){return I.addAdditionalEventProperties(e,"navigate",U,D)})))}var s=y(new j((function(e){var r=function(){var r=document.activeElement;if(r&&("TEXTAREA"===r.tagName||"INPUT"===r.tagName)){try{if(r.selectionStart===r.selectionEnd)return}catch(e){return}return e.next()}var t=window.getSelection();if(t&&!t.isCollapsed)return e.next()};return window.document.addEventListener("selectionchange",r),function(){window.document.removeEventListener("selectionchange",r)}}))),l=y(p());return(e={})[u.ClickObservable]=t,e[u.MutationObservable]=n,e[u.NavigateObservable]=r,e[u.BrowserErrorObservable]=o,e[u.SelectionObservable]=s,e[u.MouseMoveObservable]=l,e}(),L&&(n=s(_,N),a=c({allObservables:t,amplitude:r,shouldTrackRageClick:n}),P.push(a)),S&&(f=s(_,R),g=l({amplitude:r,allObservables:t,getEventProperties:function(e,r){return I.getEventProperties(e,r,D)},shouldTrackDeadClick:f}),P.push(g)),T&&(w=s(_,B),C=h({amplitude:r,allObservables:t,shouldTrackErrorClick:w}),P.push(C)),M&&(k=void 0,E=void 0,"object"==typeof _.thrashedCursor&&(k=_.thrashedCursor.directionChanges,E=_.thrashedCursor.threshold,k&&k<5&&(e.loggerProvider.warn("'thrashedCursor.directionChanges' of ".concat(k," is below the minimum of ").concat(5,", setting to ").concat(5)),k=5),E&&E>A&&(e.loggerProvider.warn("'thrashedCursor.threshold' of ".concat(E," is above the maximum of ").concat(A,", setting to ").concat(A)),E=A)),x=b({amplitude:r,options:_,allObservables:t,directionChanges:k,thresholdMs:E}),P.push(x)),null===(X=null==e?void 0:e.loggerProvider)||void 0===X||X.log("".concat(O," has been successfully added."))),[2]}))}))},execute:function(e){return t(void 0,void 0,void 0,(function(){return o(this,(function(r){return[2,e]}))}))},teardown:function(){return t(void 0,void 0,void 0,(function(){var e,r,t,i;return o(this,(function(o){try{for(e=n(P),r=e.next();!r.done;r=e.next())r.value.unsubscribe()}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=e.return)&&i.call(e)}finally{if(t)throw t.error}}return[2]}))}))}}};export{_ as frustrationPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import n from"../../../../../../../../_virtual/
|
|
1
|
+
import{__assign as e}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import n from"../../../../../../../../_virtual/index.js";import{merge as r}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import{getGlobalScope as t}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{consoleObserver as o}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/observers/console.js";var i=t(),c=function(){return new n((function(e){var n=new MutationObserver((function(n){e.next(n)}));return document.body&&n.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return n.disconnect()}}))},u=function(e){return void 0===e&&(e="click"),new n((function(n){var r,o=function(e){n.next(e)};return null===(r=t())||void 0===r||r.document.addEventListener(e,o,{capture:!0}),function(){var n;null===(n=t())||void 0===n||n.document.removeEventListener(e,o,{capture:!0})}}))},s=function(){return new n((function(e){var n,r=function(n){e.next(n)};return null===(n=t())||void 0===n||n.addEventListener("scroll",r),function(){var e;null===(e=t())||void 0===e||e.removeEventListener("scroll",r)}}))},a=function(e,r){return new n((function(n){var o,i=t();if(!(null==i?void 0:i.IntersectionObserver))return function(){};var c=new IntersectionObserver((function(e){e.forEach((function(e){n.next(e)}))}),{root:null,rootMargin:"0px",threshold:1}),u=r.join(",");(null!==(o=null==i?void 0:i.document.querySelectorAll(u))&&void 0!==o?o:[]).forEach((function(e){c.observe(e)}));var s=e.subscribe((function(e){return e.event.forEach((function(e){return e.addedNodes.forEach((function(e){e instanceof Element&&(e.matches(u)&&c.observe(e),e.querySelectorAll(u).forEach((function(e){c.observe(e)})))}))}))}));return function(){s.unsubscribe(),c.disconnect()}}))},l=function(){var t=r(new n((function(n){var r=function(r){if(r instanceof ErrorEvent){var t={kind:"error"};r.error instanceof Error||r.error instanceof DOMException?t=e(e({},t),{message:r.error.message,stack:r.error.stack,filename:r.filename,lineNumber:r.lineno,columnNumber:r.colno}):"string"==typeof r.error&&(t.message=r.error),n.next(t)}};return i.addEventListener("error",r),function(){i.removeEventListener("error",r)}})),new n((function(e){var n=function(n){var r={kind:"unhandledrejection"};n.reason instanceof Error||n.reason instanceof DOMException?(r.message=n.reason.message,r.stack=n.reason.stack):"string"==typeof n.reason&&(r.message=n.reason),e.next(r)};return i.addEventListener("unhandledrejection",n),function(){i.removeEventListener("unhandledrejection",n)}})));return r(t,new n((function(e){var n=function(n){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];var o=void 0;Array.isArray(r[0])&&"string"==typeof r[0][0]&&(o=r[0][0]),e.next({kind:"console",message:o})};return o.addListener("error",n),function(){o.removeListener(n)}})))},d=function(){return new n((function(e){var n=function(n){e.next(n)},r={capture:!0};return i.document.addEventListener("mousemove",n,r),function(){i.document.removeEventListener("mousemove",n,r)}}))};export{u as createClickObservable,l as createErrorObservable,a as createExposureObservable,d as createMouseMoveObservable,c as createMutationObservable,s as createScrollObservable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as n}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{PLUGIN_NAME as r}from"./constants.js";import{trackNetworkEvents as t}from"./track-network-event.js";import o from"../../../../../../../../_virtual/
|
|
1
|
+
import{__awaiter as e,__generator as n}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{PLUGIN_NAME as r}from"./constants.js";import{trackNetworkEvents as t}from"./track-network-event.js";import o from"../../../../../../../../_virtual/index.js";import{NetworkEventCallback as i,networkObserver as u}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/observers/network.js";var s,c;!function(e){e.NetworkObservable="networkObservable"}(s||(s={}));var l=function(l){void 0===l&&(l={});var a,d=r,v=function(){var e,n=new o((function(e){var n=new i((function(n){var r=function(e,n){return{event:e,timestamp:Date.now(),type:n}}(n,"network");e.next(r)}));return u.subscribe(n,a),function(){u.unsubscribe(n)}}));return(e={})[s.NetworkObservable]=n,e};return{name:d,type:"enrichment",setup:function(r,o){return e(void 0,void 0,void 0,(function(){var e;return n(this,(function(n){return"undefined"==typeof document||(e=v(),a=null==r?void 0:r.loggerProvider,c=t({allObservables:e,networkTrackingOptions:l,amplitude:o,loggerProvider:a}),null==a||a.log("".concat(d," has been successfully added."))),[2]}))}))},execute:function(r){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return[2,r]}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return c.unsubscribe(),[2]}))}))}}};export{s as ObservablesEnum,l as networkCapturePlugin};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ClientOperationSettings } from '@validation/operation-settings-validation';
|
|
2
|
-
import type { BankAccount, Organization } from '../shared/organizations.types';
|
|
2
|
+
import type { BankAccount, Membership, Organization } from '../shared/organizations.types';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the organization information.
|
|
5
5
|
*
|
|
@@ -44,4 +44,36 @@ export declare const getOrganization: ({ operationSettings, }: {
|
|
|
44
44
|
export declare const getBankAccounts: ({ operationSettings, }: {
|
|
45
45
|
operationSettings: ClientOperationSettings;
|
|
46
46
|
}) => Promise<BankAccount[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves the membership information for the current user.
|
|
49
|
+
*
|
|
50
|
+
* **Client-side only** - Uses proxy-based authentication.
|
|
51
|
+
* For server-side operations, import from `'@qonto/embed-sdk/server/organizations'`.
|
|
52
|
+
*
|
|
53
|
+
* @param params - (Optional) An object containing:
|
|
54
|
+
* - `operationSettings`: (Optional) An object with operation-level settings such as
|
|
55
|
+
* `proxyEndpointDescriptor`. If not provided here, the settings previously passed
|
|
56
|
+
* to the `initialize` function will be used.
|
|
57
|
+
* @returns A promise that resolves to the membership information for the current user.
|
|
58
|
+
* @throws `InvalidParametersError` If `proxyEndpointDescriptor` is not provided here
|
|
59
|
+
* or via `initialize`.
|
|
60
|
+
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```
|
|
64
|
+
* // Using proxyEndpointDescriptor passed to initialize
|
|
65
|
+
* const membership = await getMembership();
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```
|
|
70
|
+
* // Passing proxyEndpointDescriptor per-call
|
|
71
|
+
* const membership = await getMembership({
|
|
72
|
+
* operationSettings: { proxyEndpointDescriptor }
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
export declare const getMembership: ({ operationSettings, }?: {
|
|
77
|
+
operationSettings?: ClientOperationSettings;
|
|
78
|
+
}) => Promise<Membership>;
|
|
47
79
|
//# sourceMappingURL=organizations.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.client.d.ts","sourceRoot":"","sources":["../../../../src/organizations/client/organizations.client.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"organizations.client.d.ts","sourceRoot":"","sources":["../../../../src/organizations/client/organizations.client.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2CAA2C,CAAC;AAYnD,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EAEV,YAAY,EAEb,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,GAAU,wBAEnC;IACD,iBAAiB,EAAE,uBAAuB,CAAC;CAC5C,KAAG,OAAO,CAAC,YAAY,CAkBvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,GAAU,wBAEnC;IACD,iBAAiB,EAAE,uBAAuB,CAAC;CAC5C,KAAG,OAAO,CAAC,WAAW,EAAE,CAgBxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,aAAa,GAAU,yBAEjC;IACD,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CACxC,KAAG,OAAO,CAAC,UAAU,CAiB1B,CAAC"}
|
|
@@ -21,6 +21,9 @@ export declare const organizations: {
|
|
|
21
21
|
getBankAccounts: ({ operationSettings, }: {
|
|
22
22
|
operationSettings: import("@validation/operation-settings-validation").ClientOperationSettings;
|
|
23
23
|
}) => Promise<import("./index.server").BankAccount[]>;
|
|
24
|
+
getMembership: ({ operationSettings, }?: {
|
|
25
|
+
operationSettings?: import("@validation/operation-settings-validation").ClientOperationSettings;
|
|
26
|
+
}) => Promise<import("./index.server").Membership>;
|
|
24
27
|
};
|
|
25
28
|
export type * from './shared/organizations.types';
|
|
26
29
|
export type { ClientOperationSettings, ClientOperationSettingsWithUI, } from '@validation/operation-settings-validation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa;;;;;;;;yBAYwhH,CAAC;;CARljH,CAAC;AAGF,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EACV,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,2CAA2C,CAAC"}
|
|
@@ -26,6 +26,9 @@ export declare const organizations: {
|
|
|
26
26
|
getBankAccounts: ({ operationSettings, }?: {
|
|
27
27
|
operationSettings?: import("@validation/operation-settings-validation").ServerOperationSettings;
|
|
28
28
|
}) => Promise<import("./index.server").BankAccount[]>;
|
|
29
|
+
getMembership: ({ operationSettings, }?: {
|
|
30
|
+
operationSettings?: import("@validation/operation-settings-validation").ServerOperationSettings;
|
|
31
|
+
}) => Promise<import("./index.server").Membership>;
|
|
29
32
|
};
|
|
30
33
|
export type * from './shared/organizations.types';
|
|
31
34
|
export type { ServerOperationSettings } from '@validation/operation-settings-validation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.server.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa;;yBASgT,CAAC;;;yBAAoqC,CAAC;;;yBAAqrC,CAAC;;CALrqF,CAAC;AAGF,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ServerOperationSettings } from '@validation/operation-settings-validation';
|
|
2
|
-
import type { BankAccount, Organization } from '../shared/organizations.types';
|
|
2
|
+
import type { BankAccount, Membership, Organization } from '../shared/organizations.types';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the organization information.
|
|
5
5
|
*
|
|
@@ -46,4 +46,27 @@ export declare const getOrganization: ({ operationSettings, }?: {
|
|
|
46
46
|
export declare const getBankAccounts: ({ operationSettings, }?: {
|
|
47
47
|
operationSettings?: ServerOperationSettings;
|
|
48
48
|
}) => Promise<BankAccount[]>;
|
|
49
|
+
/**
|
|
50
|
+
* Retrieves the membership information for the current user.
|
|
51
|
+
*
|
|
52
|
+
* **Server-side only** - Uses accessToken-based authentication.
|
|
53
|
+
* For client-side operations, import from `'@qonto/embed-sdk/organizations'`.
|
|
54
|
+
*
|
|
55
|
+
* @param params - An object containing:
|
|
56
|
+
* - `operationSettings`: (Optional) An object with operation-level settings such as
|
|
57
|
+
* `accessToken` and `stagingToken`.
|
|
58
|
+
* @returns A promise that resolves to the membership information for the current user.
|
|
59
|
+
* @throws `AuthenticationError` If the `accessToken` is invalid or missing.
|
|
60
|
+
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```
|
|
64
|
+
* const membership = await getMembership({
|
|
65
|
+
* operationSettings: { accessToken: 'your-token' }
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export declare const getMembership: ({ operationSettings, }?: {
|
|
70
|
+
operationSettings?: ServerOperationSettings;
|
|
71
|
+
}) => Promise<Membership>;
|
|
49
72
|
//# sourceMappingURL=organizations.server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.server.d.ts","sourceRoot":"","sources":["../../../../src/organizations/server/organizations.server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"organizations.server.d.ts","sourceRoot":"","sources":["../../../../src/organizations/server/organizations.server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAYzF,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,YAAY,EACb,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,GAAU,yBAEnC;IACD,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CACxC,KAAG,OAAO,CAAC,YAAY,CAS5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,GAAU,yBAEnC;IACD,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CACxC,KAAG,OAAO,CAAC,WAAW,EAAE,CAS7B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,aAAa,GAAU,yBAEjC;IACD,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CACxC,KAAG,OAAO,CAAC,UAAU,CAS1B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type NetworkCallDescriptor } from '@common/network/network';
|
|
2
|
-
import type { BankAccountDataObject, OrganizationDataObject } from './organizations.types';
|
|
2
|
+
import type { BankAccountDataObject, MembershipDataObject, OrganizationDataObject } from './organizations.types';
|
|
3
3
|
export declare const prepareGetOrganization: ({ accessToken, stagingToken, }: {
|
|
4
4
|
accessToken?: string;
|
|
5
5
|
stagingToken?: string;
|
|
@@ -20,4 +20,14 @@ export declare const getBankAccounts: ({ accessToken, stagingToken, }: {
|
|
|
20
20
|
}) => Promise<{
|
|
21
21
|
bank_accounts: BankAccountDataObject[];
|
|
22
22
|
}>;
|
|
23
|
+
export declare const prepareGetMembership: ({ accessToken, stagingToken, }: {
|
|
24
|
+
accessToken?: string;
|
|
25
|
+
stagingToken?: string;
|
|
26
|
+
}) => NetworkCallDescriptor;
|
|
27
|
+
export declare const getMembership: ({ accessToken, stagingToken, }: {
|
|
28
|
+
accessToken: string;
|
|
29
|
+
stagingToken?: string;
|
|
30
|
+
}) => Promise<{
|
|
31
|
+
membership: MembershipDataObject;
|
|
32
|
+
}>;
|
|
23
33
|
//# sourceMappingURL=organizations.api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.api.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"organizations.api.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAM/B,eAAO,MAAM,sBAAsB,GAAI,gCAGpC;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,qBAYH,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,gCAGnC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,OAAO,CAAC;IAAE,YAAY,EAAE,sBAAsB,CAAA;CAAE,CASnD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,gCAGpC;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,qBAYH,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,gCAGnC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,OAAO,CAAC;IAAE,aAAa,EAAE,qBAAqB,EAAE,CAAA;CAAE,CASrD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,gCAGlC;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,qBAYH,CAAC;AAEF,eAAO,MAAM,aAAa,GAAU,gCAGjC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,OAAO,CAAC;IAAE,UAAU,EAAE,oBAAoB,CAAA;CAAE,CAS/C,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { BankAccount, BankAccountDataObject, Organization, OrganizationDataObject } from './organizations.types';
|
|
1
|
+
import type { BankAccount, BankAccountDataObject, Membership, MembershipDataObject, Organization, OrganizationDataObject } from './organizations.types';
|
|
2
2
|
export declare const serializeOrganization: (organization: OrganizationDataObject) => Organization;
|
|
3
3
|
export declare const serializeBankAccount: (bankAccount: BankAccountDataObject) => BankAccount;
|
|
4
|
+
export declare const serializeMembership: (membership: MembershipDataObject) => Membership;
|
|
4
5
|
//# sourceMappingURL=organizations.serializer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.serializer.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.serializer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACrB,YAAY,EACZ,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,qBAAqB,GAChC,cAAc,sBAAsB,KACnC,YAgBF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,aAAa,qBAAqB,KACjC,WAgBF,CAAC"}
|
|
1
|
+
{"version":3,"file":"organizations.serializer.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.serializer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACrB,UAAU,EACV,oBAAoB,EACpB,YAAY,EACZ,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,qBAAqB,GAChC,cAAc,sBAAsB,KACnC,YAgBF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,aAAa,qBAAqB,KACjC,WAgBF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,YAAY,oBAAoB,KAC/B,UAaF,CAAC"}
|
|
@@ -103,4 +103,58 @@ export interface Organization {
|
|
|
103
103
|
contractSignedAt: string;
|
|
104
104
|
bankAccounts: BankAccount[];
|
|
105
105
|
}
|
|
106
|
+
export interface MembershipDataObject {
|
|
107
|
+
id: string;
|
|
108
|
+
user_id: string;
|
|
109
|
+
organization_id: string;
|
|
110
|
+
first_name: string;
|
|
111
|
+
last_name: string;
|
|
112
|
+
email: string;
|
|
113
|
+
role: string;
|
|
114
|
+
status: string;
|
|
115
|
+
created_at: string;
|
|
116
|
+
updated_at: string;
|
|
117
|
+
}
|
|
118
|
+
export interface Membership {
|
|
119
|
+
/**
|
|
120
|
+
* The ID of the membership.
|
|
121
|
+
*/
|
|
122
|
+
id: string;
|
|
123
|
+
/**
|
|
124
|
+
* The ID of the user associated with this membership.
|
|
125
|
+
*/
|
|
126
|
+
userId: string;
|
|
127
|
+
/**
|
|
128
|
+
* The ID of the organization this membership belongs to.
|
|
129
|
+
*/
|
|
130
|
+
organizationId: string;
|
|
131
|
+
/**
|
|
132
|
+
* The first name of the user.
|
|
133
|
+
*/
|
|
134
|
+
firstName: string;
|
|
135
|
+
/**
|
|
136
|
+
* The last name of the user.
|
|
137
|
+
*/
|
|
138
|
+
lastName: string;
|
|
139
|
+
/**
|
|
140
|
+
* The email address of the user.
|
|
141
|
+
*/
|
|
142
|
+
email: string;
|
|
143
|
+
/**
|
|
144
|
+
* The role of the user in the organization (e.g., 'owner', 'admin', 'employee').
|
|
145
|
+
*/
|
|
146
|
+
role: string;
|
|
147
|
+
/**
|
|
148
|
+
* The status of the membership (e.g., 'active', 'inactive', 'pending').
|
|
149
|
+
*/
|
|
150
|
+
status: string;
|
|
151
|
+
/**
|
|
152
|
+
* The date and time when the membership was created.
|
|
153
|
+
*/
|
|
154
|
+
createdAt: string;
|
|
155
|
+
/**
|
|
156
|
+
* The date and time when the membership was last updated.
|
|
157
|
+
*/
|
|
158
|
+
updatedAt: string;
|
|
159
|
+
}
|
|
106
160
|
//# sourceMappingURL=organizations.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.types.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wBAAwB,EAAE,MAAM,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,IAAI,CAAC;IACjB,MAAM,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAC7D,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAC7D;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,qBAAqB,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B"}
|
|
1
|
+
{"version":3,"file":"organizations.types.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wBAAwB,EAAE,MAAM,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,IAAI,CAAC;IACjB,MAAM,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAC7D,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAC7D;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,qBAAqB,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -14,7 +14,7 @@ import type { CreatePaymentLinkSettings, PaymentLinkParams } from '../shared/pay
|
|
|
14
14
|
* `proxyEndpointDescriptor` (required).
|
|
15
15
|
* @returns Promise resolving to the full URL as a string, which can be used to launch the payment link creation flow in an iframe or browser.
|
|
16
16
|
* @throws `InvalidParametersError` If `proxyEndpointDescriptor` is not provided, or if the provided items array is invalid, or if callbackUrl is missing or invalid.
|
|
17
|
-
* @throws `AuthenticationError` If authentication fails (e.g.,
|
|
17
|
+
* @throws `AuthenticationError` If authentication fails (e.g., proxy authentication is rejected).
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* ```
|
|
@@ -42,7 +42,7 @@ export declare const getPaymentLinkCreationFlowUrl: ({ paymentLinkSettings, oper
|
|
|
42
42
|
* `proxyEndpointDescriptor` (required).
|
|
43
43
|
* @returns This function redirects the browser to the payment link creation flow. Due to the redirect, the returned promise will not resolve.
|
|
44
44
|
* @throws `InvalidParametersError` If `proxyEndpointDescriptor` is not provided, or if the provided items array is invalid, or if callbackUrl is missing or invalid.
|
|
45
|
-
* @throws `AuthenticationError` If authentication fails (e.g.,
|
|
45
|
+
* @throws `AuthenticationError` If authentication fails (e.g., proxy authentication is rejected).
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
48
48
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getBankAccounts as r,getOrganization as
|
|
1
|
+
import{getMembership as e,getBankAccounts as r,getOrganization as t}from"./server/organizations.server.js";const o={getOrganization:t,getBankAccounts:r,getMembership:e};export{o as organizations};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../common/auth/auth.js";import{validatePresenceOfAuthToken as a}from"../../common/auth/auth.validate.js";import{
|
|
1
|
+
import"../../common/auth/auth.js";import{validatePresenceOfAuthToken as a}from"../../common/auth/auth.validate.js";import{getMembership as n,getBankAccounts as s,getOrganization as t}from"../shared/organizations.api.js";import{serializeMembership as o,serializeBankAccount as e,serializeOrganization as i}from"../shared/organizations.serializer.js";const r=async({operationSettings:n}={})=>{const{accessToken:s,stagingToken:o}=n||{},e=s||a(),r=await t({accessToken:e,stagingToken:o});return i(r.organization)},c=async({operationSettings:n}={})=>{const{accessToken:t,stagingToken:o}=n||{},i=t||a();return(await s({accessToken:i,stagingToken:o})).bank_accounts.map(e)},g=async({operationSettings:s}={})=>{const{accessToken:t,stagingToken:e}=s||{},i=t||a(),r=await n({accessToken:i,stagingToken:e});return o(r.membership)};export{c as getBankAccounts,g as getMembership,r as getOrganization};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeNetworkCall as n}from"../../common/network/network.js";const e=({accessToken:n,stagingToken:e})=>({path:"/v2/organization/",options:{method:"GET",headers:{accessToken:n,stagingToken:e}}}),
|
|
1
|
+
import{makeNetworkCall as n}from"../../common/network/network.js";const e=({accessToken:n,stagingToken:e})=>({path:"/v2/organization/",options:{method:"GET",headers:{accessToken:n,stagingToken:e}}}),s=async({accessToken:s,stagingToken:o})=>{const a=e({accessToken:s,stagingToken:o});return await n(a)},o=({accessToken:n,stagingToken:e})=>({path:"/v2/bank_accounts/",options:{method:"GET",headers:{accessToken:n,stagingToken:e}}}),a=async({accessToken:e,stagingToken:s})=>{const a=o({accessToken:e,stagingToken:s});return await n(a)},t=({accessToken:n,stagingToken:e})=>({path:"/v2/membership/",options:{method:"GET",headers:{accessToken:n,stagingToken:e}}}),c=async({accessToken:e,stagingToken:s})=>{const o=t({accessToken:e,stagingToken:s});return await n(o)};export{a as getBankAccounts,c as getMembership,s as getOrganization,o as prepareGetBankAccounts,t as prepareGetMembership,e as prepareGetOrganization};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a=a=>({id:a.id,slug:a.slug,legalName:a.legal_name,legalNumber:a.legal_number,legalSector:a.legal_sector,legalRegistrationDate:a.legal_registration_date,legalAddress:a.legal_address,legalForm:a.legal_form,legalCountry:a.legal_country,legalShareCapital:a.legal_share_capital,locale:a.locale,contractSignedAt:a.contract_signed_at,bankAccounts:a.bank_accounts.map(e)}),e=a=>({id:a?.id,slug:a.slug,iban:a.iban,bic:a.bic,currency:a.currency,balance:parseFloat(a.balance),balanceCents:a.balance_cents,authorizedBalance:a.authorized_balance,authorizedBalanceCents:a.authorized_balance_cents,name:a.name,updatedAt:new Date(a.updated_at),status:a.status,main:a.main});export{e as serializeBankAccount,a as serializeOrganization};
|
|
1
|
+
const a=a=>({id:a.id,slug:a.slug,legalName:a.legal_name,legalNumber:a.legal_number,legalSector:a.legal_sector,legalRegistrationDate:a.legal_registration_date,legalAddress:a.legal_address,legalForm:a.legal_form,legalCountry:a.legal_country,legalShareCapital:a.legal_share_capital,locale:a.locale,contractSignedAt:a.contract_signed_at,bankAccounts:a.bank_accounts.map(e)}),e=a=>({id:a?.id,slug:a.slug,iban:a.iban,bic:a.bic,currency:a.currency,balance:parseFloat(a.balance),balanceCents:a.balance_cents,authorizedBalance:a.authorized_balance,authorizedBalanceCents:a.authorized_balance_cents,name:a.name,updatedAt:new Date(a.updated_at),status:a.status,main:a.main}),t=a=>({id:a.id,userId:a.user_id,organizationId:a.organization_id,firstName:a.first_name,lastName:a.last_name,email:a.email,role:a.role,status:a.status,createdAt:a.created_at,updatedAt:a.updated_at});export{e as serializeBankAccount,t as serializeMembership,a as serializeOrganization};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const E={READY:"qonto.ready"},_={CARD_SEE:"card.see",CARD_SEE_DETAILS:"card.see-details",CARD_ORDER:"card.order",CARD_UNLOCK:"card.unlock",CARD_SHOW_PIN:"card.show.pin",CARD_SET_PIN:"card.set.pin",TRANSFER_SINGLE_CREATE:"transfer.single.create",TRANSFER_BULK_CREATE:"transfer.bulk.create",BENEFICIARIES_TRUST:"beneficiary.trust"},e={PRODUCTION:"production",STAGING:"staging",LOCAL:"local"},A={MASTER:"master",SANDBOX:"sandbox",QA:"qa"},T={ATM:"atm",FALLBACK:"fallback",FEES:"fees",FINANCE:"finance",FOOD_AND_GROCERY:"food_and_grocery",GAS_STATION:"gas_station",HARDWARE_AND_EQUIPMENT:"hardware_and_equipment",HOTEL_AND_LODGING:"hotel_and_lodging",INSURANCE:"insurance",IT_AND_ELECTRONICS:"it_and_electronics",LEGAL_AND_ACCOUNTING:"legal_and_accounting",LOGISTICS:"logistics",MANUFACTURING:"manufacturing",MARKETING:"marketing",OFFICE_RENTAL:"office_rental",OFFICE_SUPPLY:"office_supply",ONLINE_SERVICE:"online_service",OTHER_EXPENSE:"other_expense",OTHER_INCOME:"other_income",OTHER_SERVICE:"other_service",PENDING:"pending",REFUND:"refund",RESTAURANT_AND_BAR:"restaurant_and_bar",SALES:"sales",SALARY:"salary",SUBSCRIPTION:"subscription",TAX:"tax",TRANSPORT:"transport",TREASURY_AND_INTERCO:"treasury_and_interco",UTILITY:"utility",VOUCHER:"voucher"},N={PENDING:"pending",VALIDATED:"validated",DECLINED:"declined"},
|
|
1
|
+
const E={READY:"qonto.ready",MANDATE_LOADED:"qonto.mandate.loaded",MANDATE_SIGNED:"qonto.mandate.signed",MANDATE_ERROR:"qonto.mandate.error",RESIZE:"qonto.resize"},_={CARD_SEE:"card.see",CARD_SEE_DETAILS:"card.see-details",CARD_ORDER:"card.order",CARD_UNLOCK:"card.unlock",CARD_SHOW_PIN:"card.show.pin",CARD_SET_PIN:"card.set.pin",TRANSFER_SINGLE_CREATE:"transfer.single.create",TRANSFER_BULK_CREATE:"transfer.bulk.create",BENEFICIARIES_TRUST:"beneficiary.trust"},e={PRODUCTION:"production",STAGING:"staging",LOCAL:"local"},A={MASTER:"master",SANDBOX:"sandbox",QA:"qa"},T={ATM:"atm",FALLBACK:"fallback",FEES:"fees",FINANCE:"finance",FOOD_AND_GROCERY:"food_and_grocery",GAS_STATION:"gas_station",HARDWARE_AND_EQUIPMENT:"hardware_and_equipment",HOTEL_AND_LODGING:"hotel_and_lodging",INSURANCE:"insurance",IT_AND_ELECTRONICS:"it_and_electronics",LEGAL_AND_ACCOUNTING:"legal_and_accounting",LOGISTICS:"logistics",MANUFACTURING:"manufacturing",MARKETING:"marketing",OFFICE_RENTAL:"office_rental",OFFICE_SUPPLY:"office_supply",ONLINE_SERVICE:"online_service",OTHER_EXPENSE:"other_expense",OTHER_INCOME:"other_income",OTHER_SERVICE:"other_service",PENDING:"pending",REFUND:"refund",RESTAURANT_AND_BAR:"restaurant_and_bar",SALES:"sales",SALARY:"salary",SUBSCRIPTION:"subscription",TAX:"tax",TRANSPORT:"transport",TREASURY_AND_INTERCO:"treasury_and_interco",UTILITY:"utility",VOUCHER:"voucher"},N={PENDING:"pending",VALIDATED:"validated",DECLINED:"declined"},n={EN:"en",FR:"fr",DE:"de",ES:"es",IT:"it",PT:"pt"},R={BENEFICIARY_BIC_INVALID:"beneficiary_bic_invalid",BENEFICIARY_IBAN_INVALID:"beneficiary_iban_invalid",BENEFICIARY_STATUS:"beneficiary_status",BENEFICIARY_NETWORK_RULES_ERROR:"beneficiary_network_rules_error",ORGANISATION_COMPLIANCE_REASONS:"organisation_compliance_reasons",DEBIT_ACCOUNT_INSUFFICIENT_FUNDS:"debit_account_insufficient_funds",QONTO_PROCESSING_FAILED:"qonto_processing_failed"},a={PENDING:"pending",PROCESSING:"processing",CANCELED:"canceled",DECLINED:"declined",SETTLED:"settled",FAILED:"failed",COMPLETED:"completed"},I={PENDING:"pending",DECLINED:"declined",COMPLETED:"completed"},C={PASSKEY:"passkey",SMS_OTP:"sms-otp",PAIRED_DEVICE:"paired-device",MOCK:"mock"},S=3e4,i={MATCH_RESULT_MATCH:"MATCH_RESULT_MATCH",MATCH_RESULT_NO_MATCH:"MATCH_RESULT_NO_MATCH",MATCH_RESULT_CLOSE_MATCH:"MATCH_RESULT_CLOSE_MATCH",MATCH_RESULT_NOT_POSSIBLE:"MATCH_RESULT_NOT_POSSIBLE",MATCH_RESULT_UNSPECIFIED:"MATCH_RESULT_UNSPECIFIED"},r={ACCEPT:"ACCEPT",REJECT:"REJECT"},t={CARD_DISPLAY:"display_card",PAYMENT_LINK_CREATE:"create_payment_link",SEPA_TRANSFER_CREATE:"create_sepa_transfer"},D={PRECONDITION_REQUIRED:428,UNAUTHORIZED:401};export{_ as ACTIONS,T as ACTIVITY_TAGS,S as AMOUNT_REQUIRING_ATTACHMENTS,t as AUTH_LINK_ACTIONS,N as BENEFICIARY_STATUSES,A as BRANCHES,e as ENVIRONMENTS,D as HTTP_CODES,E as IFRAME_EVENTS,n as LOCALES,C as MFA_METHODS,I as TRANSACTION_STATUSES,R as TRANSFER_DECLINE_REASONS,a as TRANSFER_STATUSES,i as VOP_CHECK_RESULTS,r as VOP_DECISIONS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getUIParentElement as e}from"../common/common.utils.js";import{IFRAME_EVENTS as t}from"../common/constants.js";import{buildIframeMessage as s}from"./iframe-message-builder.js";import{EmbedOperationError as i}from"../errors/EmbedOperationError.js";class n{constructor(e){this.options=e,this.iframe=null,this.parentElement=null,this.messageListeners=new Map,this.defaultTimeout=3e4;const
|
|
1
|
+
import{getUIParentElement as e}from"../common/common.utils.js";import{IFRAME_EVENTS as t}from"../common/constants.js";import{buildIframeMessage as s}from"./iframe-message-builder.js";import{EmbedOperationError as i}from"../errors/EmbedOperationError.js";class n{constructor(e){this.options=e,this.iframe=null,this.parentElement=null,this.messageListeners=new Map,this.frameEventHandlers=new Set,this.defaultTimeout=3e4,this.frameEventListener=e=>{if(!this.iframe||e.source!==this.iframe.contentWindow||e.origin!==this.targetOrigin||"string"!=typeof e.data?.eventId)return;const{eventId:s,payload:i}=e.data;s!==t.READY&&(s===t.RESIZE&&this.resize(i?.height),this.frameEventHandlers.forEach((e=>{try{e({eventId:s,payload:i})}catch(e){console.error(e)}})))};const s=new URL(e.iframeUrl);this.targetOrigin=`${s.protocol}//${s.host}`}async initialize(){if(this.iframe)return this;if(this.parentElement=e(this.options.parentElementId),!this.parentElement)throw new i(`Could not install the authentication UI because the parent element with id ${this.options.parentElementId} was not found.\nPlease make sure to pass a valid parentElementId when calling the method.`);return new Promise(((e,s)=>{this.iframe=document.createElement("iframe"),this.iframe.src=this.options.iframeUrl,this.iframe.style.width="100%",this.iframe.style.height="100%",this.iframe.style.border="none",window.addEventListener("message",this.frameEventListener);const n=this.options.timeout||this.defaultTimeout,r=setTimeout((()=>{window.removeEventListener("message",a),window.removeEventListener("message",this.frameEventListener),s(new i(`Could not install the authentication UI because the timeout of ${n}ms was reached.\nPlease make sure the application can reach the Internet.`))}),n),a=s=>{s.data.eventId===t.READY&&(clearTimeout(r),window.removeEventListener("message",a),e(this))};window.addEventListener("message",a),this.parentElement?.appendChild(this.iframe)}))}postMessage(e){if(!this.iframe||!this.iframe.contentWindow)return Promise.reject(new i("Attempted to perform an Embed operation without having the authentication UI initialized."));const t=s(e);return new Promise(((e,s)=>{const n=r=>{if(r.data?.actionId===t.actionId){if("error"===r.data.status)return this.removeMessageListener(t.actionId,n),s(new i(`An error occurred when performing the action ${t.actionId}.\n${JSON.stringify(r.data.payload)}`));this.removeMessageListener(t.actionId,n),e(r.data.payload)}};this.addMessageListener(t.actionId,n),this.iframe?.contentWindow?.postMessage(t,this.targetOrigin)}))}onFrameEvent(e){return this.frameEventHandlers.add(e),()=>{this.frameEventHandlers.delete(e)}}resize(e){this.iframe&&"number"==typeof e&&Number.isFinite(e)&&e>0&&(this.iframe.style.height=`${Math.ceil(e)}px`)}addMessageListener(e,t){this.messageListeners.has(e)||this.messageListeners.set(e,[]);this.messageListeners.get(e).push(t),window.addEventListener("message",t)}removeMessageListener(e,t){const s=this.messageListeners.get(e);if(s){const e=s.indexOf(t);-1!==e&&(s.splice(e,1),window.removeEventListener("message",t))}}destroy(){this.messageListeners.forEach((e=>{e.forEach((e=>{window.removeEventListener("message",e)}))})),this.messageListeners.clear(),window.removeEventListener("message",this.frameEventListener),this.frameEventHandlers.clear(),this.iframe&&this.parentElement&&(this.parentElement.removeChild(this.iframe),this.iframe=null)}}export{n as EmbedIframe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tracker as o}from"../../common/analytics/analytics-tracker.js";import{callProxyFunction as
|
|
1
|
+
import{tracker as o}from"../../common/analytics/analytics-tracker.js";import{callProxyFunction as n}from"../../common/common.utils.js";import{validateClientOperationSettings as i}from"../../validation/operation-settings-validation.js";import{prepareGetBankAccounts as r,prepareGetMembership as t,prepareGetOrganization as a}from"../shared/organizations.api.js";import{serializeBankAccount as s,serializeMembership as e,serializeOrganization as p}from"../shared/organizations.serializer.js";const c=async({operationSettings:r})=>{o.organizationsList();const{stagingToken:t,proxyEndpointDescriptor:s}=i(r,"Client-side organizations operations require proxyEndpointDescriptor."),e=a({stagingToken:t}),c=await n({proxyEndpointDescriptor:s,networkCallDescriptor:e});return p(c.body.organization)},g=async({operationSettings:t})=>{o.organizationsBankAccounts();const{stagingToken:a,proxyEndpointDescriptor:e}=i(t,"Client-side organizations operations require proxyEndpointDescriptor."),p=r({stagingToken:a});return(await n({proxyEndpointDescriptor:e,networkCallDescriptor:p})).body.bank_accounts.map(s)},d=async({operationSettings:o}={})=>{const{stagingToken:r,proxyEndpointDescriptor:a}=i(o,"Client-side organizations operations require proxyEndpointDescriptor."),s=t({stagingToken:r}),p=await n({proxyEndpointDescriptor:a,networkCallDescriptor:s});return e(p.body.membership)};export{g as getBankAccounts,d as getMembership,c as getOrganization};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getBankAccounts as t,getOrganization as
|
|
1
|
+
import{getBankAccounts as t,getMembership as n,getOrganization as e}from"./client/organizations.client.js";const i={getOrganization:e,getBankAccounts:t,getMembership:n};export{i as organizations};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../common/auth/auth.js";import"../../common/environment/environment-manager.js";import"../../common/locale/locale-manager.js";import"../../common/operation-settings/operation-settings.js";const o=({accessToken:o,stagingToken:
|
|
1
|
+
import"../../common/auth/auth.js";import"../../common/environment/environment-manager.js";import"../../common/locale/locale-manager.js";import"../../common/operation-settings/operation-settings.js";const o=({accessToken:o,stagingToken:e})=>({path:"/v2/organization/",options:{method:"GET",headers:{accessToken:o,stagingToken:e}}}),e=({accessToken:o,stagingToken:e})=>({path:"/v2/bank_accounts/",options:{method:"GET",headers:{accessToken:o,stagingToken:e}}}),n=({accessToken:o,stagingToken:e})=>({path:"/v2/membership/",options:{method:"GET",headers:{accessToken:o,stagingToken:e}}});export{e as prepareGetBankAccounts,n as prepareGetMembership,o as prepareGetOrganization};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a=a=>({id:a.id,slug:a.slug,legalName:a.legal_name,legalNumber:a.legal_number,legalSector:a.legal_sector,legalRegistrationDate:a.legal_registration_date,legalAddress:a.legal_address,legalForm:a.legal_form,legalCountry:a.legal_country,legalShareCapital:a.legal_share_capital,locale:a.locale,contractSignedAt:a.contract_signed_at,bankAccounts:a.bank_accounts.map(e)}),e=a=>({id:a?.id,slug:a.slug,iban:a.iban,bic:a.bic,currency:a.currency,balance:parseFloat(a.balance),balanceCents:a.balance_cents,authorizedBalance:a.authorized_balance,authorizedBalanceCents:a.authorized_balance_cents,name:a.name,updatedAt:new Date(a.updated_at),status:a.status,main:a.main});export{e as serializeBankAccount,a as serializeOrganization};
|
|
1
|
+
const a=a=>({id:a.id,slug:a.slug,legalName:a.legal_name,legalNumber:a.legal_number,legalSector:a.legal_sector,legalRegistrationDate:a.legal_registration_date,legalAddress:a.legal_address,legalForm:a.legal_form,legalCountry:a.legal_country,legalShareCapital:a.legal_share_capital,locale:a.locale,contractSignedAt:a.contract_signed_at,bankAccounts:a.bank_accounts.map(e)}),e=a=>({id:a?.id,slug:a.slug,iban:a.iban,bic:a.bic,currency:a.currency,balance:parseFloat(a.balance),balanceCents:a.balance_cents,authorizedBalance:a.authorized_balance,authorizedBalanceCents:a.authorized_balance_cents,name:a.name,updatedAt:new Date(a.updated_at),status:a.status,main:a.main}),t=a=>({id:a.id,userId:a.user_id,organizationId:a.organization_id,firstName:a.first_name,lastName:a.last_name,email:a.email,role:a.role,status:a.status,createdAt:a.created_at,updatedAt:a.updated_at});export{e as serializeBankAccount,t as serializeMembership,a as serializeOrganization};
|