@spritz-finance/api-client 0.7.2 → 0.7.3

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.
@@ -334,7 +334,7 @@ query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
334
334
  ...PayableAccountInstitutionFragment
335
335
  }
336
336
  }
337
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var c4={};function zE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return c4[t]?!1:(c4[t]=!0,!0)})}dt.definitions=dt.definitions.concat(zE(ui.definitions));function Iu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Iu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Iu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Iu(u,n)})}var as={};(function(){dt.definitions.forEach(function(n){if(n.name){var t=new Set;Iu(n,t),as[n.name.value]=t}})})();function l4(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function UE(e,n){var t={kind:e.kind,definitions:[l4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=as[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=as[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=l4(e,o);s&&t.definitions.push(s)}),t}UE(dt,"SearchUSBillInstitutions");class PE{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:lt,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:dt,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}class RE{client;constructor(n){this.client=n}async bypassKyc(n){return this.client.restApi({method:"post",path:"/v1/sandbox/bypass-kyc",body:n??{country:"US"}})}async createDepositWithReturn(n){return this.client.restApi({method:"post",path:"/v1/sandbox/deposits/direct",body:n})}}var Fu={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OnrampPaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnRampPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositInstructions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankBeneficiaryName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankRoutingNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositMessage"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"token"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}}],loc:{start:0,end:369}};Fu.loc.source={body:`fragment OnrampPaymentFragment on OnRampPayment {
337
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var c4={};function zE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return c4[t]?!1:(c4[t]=!0,!0)})}dt.definitions=dt.definitions.concat(zE(ui.definitions));function Iu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Iu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Iu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Iu(u,n)})}var as={};(function(){dt.definitions.forEach(function(n){if(n.name){var t=new Set;Iu(n,t),as[n.name.value]=t}})})();function l4(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function UE(e,n){var t={kind:e.kind,definitions:[l4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=as[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=as[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=l4(e,o);s&&t.definitions.push(s)}),t}UE(dt,"SearchUSBillInstitutions");class PE{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:lt,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:dt,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}class RE{client;constructor(n){this.client=n}async bypassKyc(n){return this.client.restApi({method:"post",path:"/v1/sandbox/bypass-kyc",body:n??{country:"US"}})}async createDepositWithReturn(n){return this.client.restApi({method:"post",path:"/v1/sandbox/deposits/direct",body:n})}async deleteFundingSource(n){return this.client.restApi({method:"delete",path:`/v1/sandbox/funding-sources/${encodeURIComponent(n)}`})}}var Fu={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OnrampPaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnRampPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositInstructions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankBeneficiaryName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankRoutingNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositMessage"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"token"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}}],loc:{start:0,end:369}};Fu.loc.source={body:`fragment OnrampPaymentFragment on OnRampPayment {
338
338
  id
339
339
  amount
340
340
  feeAmount
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/api-client",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "packageManager": "yarn@1.22.22",
5
5
  "description": "Typescript library for interacting with the Spritz Finance API",
6
6
  "type": "module",