@great-detail/support-sdk
Advanced tools
Comparing version 0.2.10 to 0.3.0
#!/usr/bin/env node | ||
import{a as r}from"./chunk-ZYSG2PTQ.js";import"./chunk-KG7KNOPC.js";r.parseAsync(process.argv); | ||
import{a as r}from"./chunk-MIIHAFPV.js";import"./chunk-O5KZWMF7.js";r.parseAsync(process.argv); |
import { Command } from 'commander'; | ||
import { C as Client } from '../index-BMsEq65I.js'; | ||
import { C as Client } from '../index-ng6eKA5J.js'; | ||
import { Options as Options$1 } from 'ora'; | ||
@@ -4,0 +4,0 @@ import 'ky'; |
@@ -1,1 +0,1 @@ | ||
import{a}from"../chunk-ZYSG2PTQ.js";import"../chunk-KG7KNOPC.js";export{a as default}; | ||
import{a}from"../chunk-MIIHAFPV.js";import"../chunk-O5KZWMF7.js";export{a as default}; |
@@ -1,3 +0,3 @@ | ||
import { A as Authentication } from './index-BMsEq65I.js'; | ||
export { C as Client, b as CreateBoilerplateResponsePayload, x as CreateContactNoteResponsePayload, e as CreateContactResponsePayload, y as CreateConversationNoteResponsePayload, v as CreateCorrectionResponsePayload, n as CreateLabelResponsePayload, w as CreateResponseResponsePayload, D as DeleteLabelResponsePayload, G as GetBoilerplateResponsePayload, f as GetContactResponsePayload, j as GetConversationResponsePayload, o as GetLabelResponsePayload, t as GetModelResponsePayload, z as GetNoteResponsePayload, H as GetSourceResponsePayload, L as ListActionsResponsePayload, c as ListBoilerplatesResponsePayload, d as ListChannelsResponsePayload, B as ListContactNotesResponsePayload, g as ListContactsResponsePayload, r as ListConversationMessagesResponsePayload, E as ListConversationNotesResponsePayload, k as ListConversationsResponsePayload, h as ListLabelContactsResponsePayload, l as ListLabelConversationsResponsePayload, p as ListLabelsResponsePayload, s as ListMessagesResponsePayload, u as ListModelsResponsePayload, I as ListSourcesResponsePayload, O as Options, R as RequestFilterable, a as TransportOptions, U as UpdateBoilerplateResponsePayload, i as UpdateContactResponsePayload, m as UpdateConversationResponsePayload, q as UpdateLabelResponsePayload, F as UpdateNoteResponsePayload, C as default } from './index-BMsEq65I.js'; | ||
import { A as Authentication } from './index-ng6eKA5J.js'; | ||
export { C as Client, b as CreateBoilerplateCategoryBoilerplateResponsePayload, e as CreateBoilerplateCategoryResponsePayload, F as CreateContactNoteResponsePayload, j as CreateContactResponsePayload, H as CreateConversationNoteResponsePayload, B as CreateCorrectionResponsePayload, s as CreateLabelResponsePayload, E as CreateResponseResponsePayload, D as DeleteLabelResponsePayload, f as GetBoilerplateCategoryResponsePayload, G as GetBoilerplateResponsePayload, k as GetContactResponsePayload, o as GetConversationResponsePayload, t as GetLabelResponsePayload, y as GetModelResponsePayload, I as GetNoteResponsePayload, N as GetSourceResponsePayload, L as ListActionsResponsePayload, g as ListBoilerplateCategoriesResponsePayload, c as ListBoilerplateCategoryBoilerplatesResponsePayload, d as ListBoilerplatesResponsePayload, i as ListChannelsResponsePayload, J as ListContactNotesResponsePayload, l as ListContactsResponsePayload, w as ListConversationMessagesResponsePayload, K as ListConversationNotesResponsePayload, p as ListConversationsResponsePayload, m as ListLabelContactsResponsePayload, q as ListLabelConversationsResponsePayload, u as ListLabelsResponsePayload, x as ListMessagesResponsePayload, z as ListModelsResponsePayload, P as ListSourcesResponsePayload, O as Options, R as RequestFilterable, a as TransportOptions, h as UpdateBoilerplateCategoryResponsePayload, U as UpdateBoilerplateResponsePayload, n as UpdateContactResponsePayload, r as UpdateConversationResponsePayload, v as UpdateLabelResponsePayload, M as UpdateNoteResponsePayload, C as default } from './index-ng6eKA5J.js'; | ||
import 'ky'; | ||
@@ -4,0 +4,0 @@ import 'zod'; |
@@ -1,1 +0,1 @@ | ||
import{a as d,b as g,c as s,d as n,e as a,f as p,g as f,h as m,i as u,j as c,k as l,l as x,m as A,n as h,o as _}from"./chunk-KG7KNOPC.js";var E={};d(E,{AuthError:()=>m,AuthenticationError:()=>u,AuthorizationError:()=>c,LogicError:()=>l,NetworkError:()=>x,SupportError:()=>f,ValidationError:()=>A});var r=class o{static DEFAULT_NAME=s;name;#t;constructor({name:t=process.env[p]??o.DEFAULT_NAME,key:i=process.env[a]}={}){if(!i)throw new Error("API Key option must be specified when using Key Authentication");this.name=t,this.#t=i}async filter(){return{headers:this.getHeaders()}}getHeaders(){return{Authorization:`Basic ${btoa(this.name+":"+this.#t)}`}}};var e=class{#t;constructor({token:t=process.env[n]}={}){if(!t)throw new Error("Access Token option must be specified when using Token Authentication");this.#t=t}async filter(){return{headers:this.getHeaders()}}getHeaders(){return{Authorization:`Bearer ${this.#t}`}}};export{h as Client,g as DEFAULT_SUPPORT_BASE_URL,E as Error,r as KeyAuthentication,_ as PublicAuthentication,e as TokenAuthentication,h as default}; | ||
import{a as d,b as g,c as s,d as n,e as a,f as p,g as f,h as m,i as u,j as c,k as l,l as x,m as A,n as h,o as _}from"./chunk-O5KZWMF7.js";var E={};d(E,{AuthError:()=>m,AuthenticationError:()=>u,AuthorizationError:()=>c,LogicError:()=>l,NetworkError:()=>x,SupportError:()=>f,ValidationError:()=>A});var t=class o{static DEFAULT_NAME=s;name;#r;constructor({name:r=process.env[p]??o.DEFAULT_NAME,key:i=process.env[a]}={}){if(!i)throw new Error("API Key option must be specified when using Key Authentication");this.name=r,this.#r=i}async filter(){return{headers:this.getHeaders()}}getHeaders(){return{Authorization:`Basic ${btoa(this.name+":"+this.#r)}`}}};var e=class{#r;constructor({token:r=process.env[n]}={}){if(!r)throw new Error("Access Token option must be specified when using Token Authentication");this.#r=r}async filter(){return{headers:this.getHeaders()}}getHeaders(){return{Authorization:`Bearer ${this.#r}`}}};export{h as Client,g as DEFAULT_SUPPORT_BASE_URL,E as Error,t as KeyAuthentication,_ as PublicAuthentication,e as TokenAuthentication,h as default}; |
{ | ||
"name": "@great-detail/support-sdk", | ||
"version": "0.2.10", | ||
"version": "0.3.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "JavaScript SDK for the Great Detail Support System", |
@@ -36,2 +36,3 @@ /** | ||
account: string; | ||
boilerplateCategory: string; | ||
createdAt: string; | ||
@@ -38,0 +39,0 @@ updatedAt: string; |
@@ -10,5 +10,6 @@ /** | ||
export { type CreateBoilerplateResponsePayload } from "./CreateBoilerplate.js"; | ||
export { type CreateBoilerplateCategoryBoilerplateResponsePayload } from "./CreateBoilerplateCategoryBoilerplate.js"; | ||
export { type ListBoilerplateCategoryBoilerplatesResponsePayload } from "./ListBoilerplateCategoryBoilerplates.js"; | ||
export { type GetBoilerplateResponsePayload } from "./GetBoilerplate.js"; | ||
export { type ListBoilerplatesResponsePayload } from "./ListBoilerplates.js"; | ||
export { type UpdateBoilerplateResponsePayload } from "./UpdateBoilerplate.js"; |
@@ -35,2 +35,3 @@ /** | ||
account: string; | ||
boilerplateCategory: string; | ||
createdAt: string; | ||
@@ -37,0 +38,0 @@ updatedAt: string; |
@@ -48,2 +48,3 @@ /** | ||
account: string; | ||
boilerplateCategory: string; | ||
createdAt: string; | ||
@@ -50,0 +51,0 @@ updatedAt: string; |
@@ -12,6 +12,11 @@ /** | ||
import Authentication from "../Authentication/index.js"; | ||
import CreateBoilerplate from "../Boilerplate/CreateBoilerplate.js"; | ||
import CreateBoilerplateCategoryBoilerplate from "../Boilerplate/CreateBoilerplateCategoryBoilerplate.js"; | ||
import GetBoilerplate from "../Boilerplate/GetBoilerplate.js"; | ||
import ListBoilerplateCategoryBoilerplates from "../Boilerplate/ListBoilerplateCategoryBoilerplates.js"; | ||
import ListBoilerplates from "../Boilerplate/ListBoilerplates.js"; | ||
import UpdateBoilerplate from "../Boilerplate/UpdateBoilerplate.js"; | ||
import CreateBoilerplateCategory from "../BoilerplateCategory/CreateBoilerplateCategory.js"; | ||
import GetBoilerplateCategory from "../BoilerplateCategory/GetBoilerplateCategory.js"; | ||
import ListBoilerplateCategories from "../BoilerplateCategory/ListBoilerplateCategories.js"; | ||
import UpdateBoilerplateCategory from "../BoilerplateCategory/UpdateBoilerplateCategory.js"; | ||
import ListChannels from "../Channel/ListChannels.js"; | ||
@@ -86,3 +91,2 @@ import { BASE_URL_ENV_VAR } from "../constants/environment.js"; | ||
list: new ListBoilerplates(this._transport), | ||
create: new CreateBoilerplate(this._transport), | ||
update: new UpdateBoilerplate(this._transport), | ||
@@ -92,2 +96,15 @@ }; | ||
public get boilerplateCategory() { | ||
return { | ||
get: new GetBoilerplateCategory(this._transport), | ||
list: new ListBoilerplateCategories(this._transport), | ||
create: new CreateBoilerplateCategory(this._transport), | ||
update: new UpdateBoilerplateCategory(this._transport), | ||
boilerplate: { | ||
list: new ListBoilerplateCategoryBoilerplates(this._transport), | ||
create: new CreateBoilerplateCategoryBoilerplate(this._transport), | ||
}, | ||
}; | ||
} | ||
public get channel() { | ||
@@ -94,0 +111,0 @@ return { |
@@ -29,2 +29,3 @@ /** | ||
export * from "./Boilerplate/index.js"; | ||
export * from "./BoilerplateCategory/index.js"; | ||
export * from "./Channel/index.js"; | ||
@@ -31,0 +32,0 @@ export * from "./Contact/index.js"; |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
291751
102
5133