@great-detail/support-sdk
Advanced tools
Comparing version 0.1.4 to 0.1.5
#!/usr/bin/env node | ||
import{a as r}from"./chunk-ZZLBGP3J.js";import"./chunk-6W3IQ4KH.js";r.parseAsync(process.argv); | ||
import{a as r}from"./chunk-PTKKI5PQ.js";import"./chunk-2LKRKCHH.js";r.parseAsync(process.argv); |
import { Command } from 'commander'; | ||
import { C as Client } from '../index-DUbAUoWZ.js'; | ||
import { C as Client } from '../index-Dm8jdpkD.js'; | ||
import { Options as Options$1 } from 'ora'; | ||
@@ -4,0 +4,0 @@ import 'zod'; |
@@ -1,1 +0,1 @@ | ||
import{a}from"../chunk-ZZLBGP3J.js";import"../chunk-6W3IQ4KH.js";export{a as default}; | ||
import{a}from"../chunk-PTKKI5PQ.js";import"../chunk-2LKRKCHH.js";export{a as default}; |
@@ -1,3 +0,3 @@ | ||
import { A as Authentication } from './index-DUbAUoWZ.js'; | ||
export { C as Client, e as CreateContactResponsePayload, r as CreateCorrectionResponsePayload, j as CreateLabelResponsePayload, s as CreateResponseResponsePayload, D as DeleteLabelResponsePayload, G as GetContactResponsePayload, f as GetConversationResponsePayload, k as GetLabelResponsePayload, p as GetModelResponsePayload, t as GetSourceResponsePayload, L as ListActionsResponsePayload, b as ListChannelsResponsePayload, c as ListContactsResponsePayload, n as ListConversationMessagesResponsePayload, g as ListConversationsResponsePayload, d as ListLabelContactsResponsePayload, h as ListLabelConversationsResponsePayload, l as ListLabelsResponsePayload, o as ListMessagesResponsePayload, q as ListModelsResponsePayload, u as ListSourcesResponsePayload, O as Options, R as RequestFilterable, a as TransportOptions, S as TransportSendOptions, U as UpdateContactResponsePayload, i as UpdateConversationResponsePayload, m as UpdateLabelResponsePayload, C as default } from './index-DUbAUoWZ.js'; | ||
import { A as Authentication } from './index-Dm8jdpkD.js'; | ||
export { C as Client, e as CreateContactResponsePayload, r as CreateCorrectionResponsePayload, j as CreateLabelResponsePayload, s as CreateResponseResponsePayload, D as DeleteLabelResponsePayload, G as GetContactResponsePayload, f as GetConversationResponsePayload, k as GetLabelResponsePayload, p as GetModelResponsePayload, t as GetSourceResponsePayload, L as ListActionsResponsePayload, b as ListChannelsResponsePayload, c as ListContactsResponsePayload, n as ListConversationMessagesResponsePayload, g as ListConversationsResponsePayload, d as ListLabelContactsResponsePayload, h as ListLabelConversationsResponsePayload, l as ListLabelsResponsePayload, o as ListMessagesResponsePayload, q as ListModelsResponsePayload, u as ListSourcesResponsePayload, O as Options, R as RequestFilterable, a as TransportOptions, S as TransportSendOptions, U as UpdateContactResponsePayload, i as UpdateConversationResponsePayload, m as UpdateLabelResponsePayload, C as default } from './index-Dm8jdpkD.js'; | ||
import 'zod'; | ||
@@ -4,0 +4,0 @@ |
@@ -1,1 +0,1 @@ | ||
import{a as y,b as a,c as p,d as n,e as i,f as l,g as f}from"./chunk-6W3IQ4KH.js";var t=class s{static DEFAULT_NAME=a;name;#e;constructor({name:e=process.env[i]??s.DEFAULT_NAME,key:r=process.env[n]}={}){if(!r)throw new Error("API Key option must be specified when using Key Authentication");this.name=e,this.#e=r}async filter(e){return{...e,headers:{...e.headers,Authorization:`Basic ${btoa(this.name+":"+this.#e)}`}}}};var o=class{#e;constructor({token:e=process.env[p]}={}){if(!e)throw new Error("Access Token option must be specified when using Token Authentication");this.#e=e}async filter(e){return{...e,headers:{...e.headers,Authorization:`Bearer ${this.#e}`}}}};export{l as Client,y as DEFAULT_SUPPORT_BASE_URL,t as KeyAuthentication,f as PublicAuthentication,o as TokenAuthentication,l as default}; | ||
import{a as y,b as a,c as p,d as n,e as i,f as l,g as f}from"./chunk-2LKRKCHH.js";var t=class s{static DEFAULT_NAME=a;name;#e;constructor({name:e=process.env[i]??s.DEFAULT_NAME,key:r=process.env[n]}={}){if(!r)throw new Error("API Key option must be specified when using Key Authentication");this.name=e,this.#e=r}async filter(e){return{...e,headers:{...e.headers,Authorization:`Basic ${btoa(this.name+":"+this.#e)}`}}}};var o=class{#e;constructor({token:e=process.env[p]}={}){if(!e)throw new Error("Access Token option must be specified when using Token Authentication");this.#e=e}async filter(e){return{...e,headers:{...e.headers,Authorization:`Bearer ${this.#e}`}}}};export{l as Client,y as DEFAULT_SUPPORT_BASE_URL,t as KeyAuthentication,f as PublicAuthentication,o as TokenAuthentication,l as default}; |
{ | ||
"name": "@great-detail/support-sdk", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "JavaScript SDK for the Great Detail Support System", |
@@ -14,2 +14,3 @@ /** | ||
import { DEFAULT_SUPPORT_BASE_URL } from "../constants/index.js"; | ||
import GetContactVCFURL from "../Contact/ContactVCF/GetContactVCF.js"; | ||
import CreateContact from "../Contact/CreateContact.js"; | ||
@@ -82,2 +83,5 @@ import GetContact from "../Contact/GetContact.js"; | ||
create: new CreateContact(this._transport), | ||
vcf: { | ||
getURL: new GetContactVCFURL(this._transport), | ||
}, | ||
}; | ||
@@ -84,0 +88,0 @@ } |
@@ -46,2 +46,6 @@ /** | ||
public getURL(url: string | URL): URL { | ||
return new URL(url, this.options.baseURL); | ||
} | ||
public async send( | ||
@@ -54,8 +58,5 @@ url: string | URL, | ||
return await fetchAlternative( | ||
new Request( | ||
new URL(url, this.options.baseURL), | ||
await this._filterRequest(request), | ||
), | ||
new Request(this.getURL(url), await this._filterRequest(request)), | ||
); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
190572
65
3409