Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@droz-js/sdk

Package Overview
Dependencies
Maintainers
0
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@droz-js/sdk - npm Package Compare versions

Comparing version 0.9.22 to 0.9.23

2

package.json
{
"name": "@droz-js/sdk",
"description": "Droz SDK",
"version": "0.9.22",
"version": "0.9.23",
"private": false,

@@ -6,0 +6,0 @@ "exports": {

@@ -272,3 +272,3 @@ export type Maybe<T> = T;

joinTenantAsSuperAdmin?: Maybe<Scalars['String']['output']>;
leaveTenantOrganization?: Maybe<Scalars['String']['output']>;
leaveTenantOrganization?: Maybe<Scalars['Void']['output']>;
removeAccountParameter?: Maybe<Parameter>;

@@ -275,0 +275,0 @@ removeGlobalParameter?: Maybe<Parameter>;

@@ -146,2 +146,15 @@ export type Maybe<T> = T;

};
export type CreateWhatsAppTemplateInput = {
category: TemplateCategory;
components: TemplateComponentsInput;
credentialId: Scalars['String']['input'];
language: Scalars['String']['input'];
name: Scalars['String']['input'];
};
export type EditWhatsAppTemplateInput = {
category?: InputMaybe<TemplateCategory>;
components?: InputMaybe<TemplateComponentsInput>;
credentialId: Scalars['String']['input'];
id: Scalars['ID']['input'];
};
export type I18nText = {

@@ -157,2 +170,4 @@ lang: Scalars['Locale']['output'];

createWhatsAppInstance?: Maybe<WhatsAppInstance>;
createWhatsAppTemplate?: Maybe<WhatsAppTemplate>;
editWhatsAppTemplate?: Maybe<Scalars['Void']['output']>;
removeWhatsAppInstance?: Maybe<WhatsAppInstance>;

@@ -165,2 +180,8 @@ updateWhatsAppInstance?: Maybe<WhatsAppInstance>;

};
export type MutationCreateWhatsAppTemplateArgs = {
input: CreateWhatsAppTemplateInput;
};
export type MutationEditWhatsAppTemplateArgs = {
input: EditWhatsAppTemplateInput;
};
export type MutationRemoveWhatsAppInstanceArgs = {

@@ -198,4 +219,6 @@ input: RemoveWhatsAppInstanceInput;

getWhatsAppInstance?: Maybe<WhatsAppInstance>;
getWhatsAppTemplate?: Maybe<WhatsAppTemplate>;
listWhatsAppInstances?: Maybe<Array<Maybe<WhatsAppInstance>>>;
listWhatsAppPhoneNumbers?: Maybe<Array<Maybe<WhatsAppPhoneNumber>>>;
listWhatsAppTemplates?: Maybe<Array<Maybe<WhatsAppTemplate>>>;
version?: Maybe<Scalars['String']['output']>;

@@ -206,5 +229,13 @@ };

};
export type QueryGetWhatsAppTemplateArgs = {
credentialsId: Scalars['ID']['input'];
id: Scalars['ID']['input'];
};
export type QueryListWhatsAppPhoneNumbersArgs = {
credentialsId: Scalars['ID']['input'];
};
export type QueryListWhatsAppTemplatesArgs = {
credentialsId: Scalars['ID']['input'];
status?: InputMaybe<TemplateStatus>;
};
export type RemoveWhatsAppInstanceInput = {

@@ -260,2 +291,71 @@ id: Scalars['ID']['input'];

};
export type TemplateBaseComponent = {
example?: Maybe<Array<Scalars['String']['output']>>;
text: Scalars['String']['output'];
};
export type TemplateBaseComponentInput = {
example?: InputMaybe<Array<Scalars['String']['input']>>;
text: Scalars['String']['input'];
};
export type TemplateButtonsComponent = {
example?: Maybe<Array<Scalars['String']['output']>>;
text: Scalars['String']['output'];
type: TemplateButtonsType;
url?: Maybe<Scalars['String']['output']>;
};
export type TemplateButtonsComponentInput = {
example?: InputMaybe<Array<Scalars['String']['input']>>;
text: Scalars['String']['input'];
type: TemplateButtonsType;
url?: InputMaybe<Scalars['String']['input']>;
};
export declare enum TemplateButtonsType {
CopyCode = "COPY_CODE",
QuickReply = "QUICK_REPLY",
Url = "URL"
}
export declare enum TemplateCategory {
Authentication = "AUTHENTICATION",
Marketing = "MARKETING",
Utility = "UTILITY"
}
export declare enum TemplateComponentType {
Body = "BODY",
Buttons = "BUTTONS",
Footer = "FOOTER",
Header = "HEADER"
}
export type TemplateComponents = {
body: TemplateBaseComponent;
buttons?: Maybe<Array<Maybe<TemplateButtonsComponent>>>;
footer?: Maybe<TemplateBaseComponent>;
header?: Maybe<TemplateHeaderComponent>;
};
export type TemplateComponentsInput = {
body: TemplateBaseComponentInput;
buttons?: InputMaybe<Array<InputMaybe<TemplateButtonsComponentInput>>>;
footer?: InputMaybe<TemplateBaseComponentInput>;
header?: InputMaybe<TemplateHeaderComponentInput>;
};
export type TemplateHeaderComponent = {
example?: Maybe<Array<Scalars['String']['output']>>;
format: TemplateHeaderFormat;
text: Scalars['String']['output'];
};
export declare enum TemplateHeaderFormat {
Document = "DOCUMENT",
Image = "IMAGE",
Text = "TEXT",
Video = "VIDEO"
}
export declare enum TemplateStatus {
Approved = "APPROVED",
Deleted = "DELETED",
InAppeal = "IN_APPEAL",
LimitExceeded = "LIMIT_EXCEEDED",
Paused = "PAUSED",
Pending = "PENDING",
PendingDeletion = "PENDING_DELETION",
Rejected = "REJECTED"
}
export declare enum Typenames {

@@ -287,3 +387,24 @@ Any = "Any",

};
export type WhatsAppTemplate = {
category: TemplateCategory;
components: TemplateComponents;
id: Scalars['ID']['output'];
language: Scalars['String']['output'];
name: Scalars['String']['output'];
status: TemplateStatus;
};
export type TemplateHeaderComponentInput = {
example?: InputMaybe<Array<Scalars['String']['input']>>;
format: TemplateHeaderFormat;
text: Scalars['String']['input'];
};
export type WhatsappInstanceFragment = Pick<WhatsAppInstance, 'id' | 'name' | 'drn' | 'phoneNumberId' | 'wabaId' | 'credentialsId' | 'createdAt' | 'updatedAt'>;
export type WhatsAppTemplateFragment = (Pick<WhatsAppTemplate, 'id' | 'name' | 'category' | 'status'> & {
components: {
body: Pick<TemplateBaseComponent, 'example' | 'text'>;
header?: Maybe<Pick<TemplateHeaderComponent, 'text' | 'example' | 'format'>>;
footer?: Maybe<Pick<TemplateBaseComponent, 'text' | 'example'>>;
buttons?: Maybe<Array<Maybe<Pick<TemplateButtonsComponent, 'example' | 'text' | 'type' | 'url'>>>>;
};
});
export type WhatsAppPhoneNumberFragment = Pick<WhatsAppPhoneNumber, 'id' | 'displayPhoneNumber'>;

@@ -308,2 +429,16 @@ export type GetWhatsAppInstanceQueryVariables = Exact<{

};
export type ListWhatsAppTemplatesQueryVariables = Exact<{
credentialsId: Scalars['ID']['input'];
status?: InputMaybe<TemplateStatus>;
}>;
export type ListWhatsAppTemplatesQuery = {
listWhatsAppTemplates?: Maybe<Array<Maybe<WhatsAppTemplateFragment>>>;
};
export type GetWhatsAppTemplateQueryVariables = Exact<{
id: Scalars['ID']['input'];
credentialsId: Scalars['ID']['input'];
}>;
export type GetWhatsAppTemplateQuery = {
getWhatsAppTemplate?: Maybe<WhatsAppTemplateFragment>;
};
export type CreateWhatsAppInstanceMutationVariables = Exact<{

@@ -327,3 +462,14 @@ input: CreateWhatsAppInstanceInput;

};
export type CreateWhatsAppTemplateMutationVariables = Exact<{
input: CreateWhatsAppTemplateInput;
}>;
export type CreateWhatsAppTemplateMutation = {
createWhatsAppTemplate?: Maybe<Pick<WhatsAppTemplate, 'id' | 'name' | 'status' | 'category'>>;
};
export type EditWhatsAppTemplateMutationVariables = Exact<{
input: EditWhatsAppTemplateInput;
}>;
export type EditWhatsAppTemplateMutation = Pick<Mutation, 'editWhatsAppTemplate'>;
export declare const WhatsappInstanceFragmentDoc = "\n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n drn\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
export declare const WhatsAppTemplateFragmentDoc = "\n fragment whatsAppTemplate on WhatsAppTemplate {\n id\n name\n category\n status\n components {\n body {\n example\n text\n }\n header {\n text\n example\n format\n }\n footer {\n text\n example\n }\n buttons {\n example\n text\n type\n url\n }\n }\n}\n ";
export declare const WhatsAppPhoneNumberFragmentDoc = "\n fragment whatsAppPhoneNumber on WhatsAppPhoneNumber {\n id\n displayPhoneNumber\n}\n ";

@@ -333,5 +479,9 @@ export declare const GetWhatsAppInstanceDocument = "\n query getWhatsAppInstance($id: ID!) {\n getWhatsAppInstance(id: $id) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n drn\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";

export declare const ListWhatsAppPhoneNumbersDocument = "\n query listWhatsAppPhoneNumbers($credentialsId: ID!) {\n listWhatsAppPhoneNumbers(credentialsId: $credentialsId) {\n ...whatsAppPhoneNumber\n }\n}\n \n fragment whatsAppPhoneNumber on WhatsAppPhoneNumber {\n id\n displayPhoneNumber\n}\n ";
export declare const ListWhatsAppTemplatesDocument = "\n query listWhatsAppTemplates($credentialsId: ID!, $status: TemplateStatus) {\n listWhatsAppTemplates(credentialsId: $credentialsId, status: $status) {\n ...whatsAppTemplate\n }\n}\n \n fragment whatsAppTemplate on WhatsAppTemplate {\n id\n name\n category\n status\n components {\n body {\n example\n text\n }\n header {\n text\n example\n format\n }\n footer {\n text\n example\n }\n buttons {\n example\n text\n type\n url\n }\n }\n}\n ";
export declare const GetWhatsAppTemplateDocument = "\n query getWhatsAppTemplate($id: ID!, $credentialsId: ID!) {\n getWhatsAppTemplate(id: $id, credentialsId: $credentialsId) {\n ...whatsAppTemplate\n }\n}\n \n fragment whatsAppTemplate on WhatsAppTemplate {\n id\n name\n category\n status\n components {\n body {\n example\n text\n }\n header {\n text\n example\n format\n }\n footer {\n text\n example\n }\n buttons {\n example\n text\n type\n url\n }\n }\n}\n ";
export declare const CreateWhatsAppInstanceDocument = "\n mutation createWhatsAppInstance($input: CreateWhatsAppInstanceInput!) {\n createWhatsAppInstance(input: $input) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n drn\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
export declare const UpdateWhatsAppInstanceDocument = "\n mutation updateWhatsAppInstance($input: UpdateWhatsAppInstanceInput!) {\n updateWhatsAppInstance(input: $input) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n drn\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
export declare const RemoveWhatsAppInstanceDocument = "\n mutation removeWhatsAppInstance($input: RemoveWhatsAppInstanceInput!) {\n removeWhatsAppInstance(input: $input) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n drn\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
export declare const CreateWhatsAppTemplateDocument = "\n mutation createWhatsAppTemplate($input: CreateWhatsAppTemplateInput!) {\n createWhatsAppTemplate(input: $input) {\n id\n name\n status\n category\n }\n}\n ";
export declare const EditWhatsAppTemplateDocument = "\n mutation editWhatsAppTemplate($input: EditWhatsAppTemplateInput!) {\n editWhatsAppTemplate(input: $input)\n}\n ";
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;

@@ -342,7 +492,11 @@ export declare function getSdk<C>(requester: Requester<C>): {

listWhatsAppPhoneNumbers(variables: ListWhatsAppPhoneNumbersQueryVariables, options?: C): Promise<ListWhatsAppPhoneNumbersQuery>;
listWhatsAppTemplates(variables: ListWhatsAppTemplatesQueryVariables, options?: C): Promise<ListWhatsAppTemplatesQuery>;
getWhatsAppTemplate(variables: GetWhatsAppTemplateQueryVariables, options?: C): Promise<GetWhatsAppTemplateQuery>;
createWhatsAppInstance(variables: CreateWhatsAppInstanceMutationVariables, options?: C): Promise<CreateWhatsAppInstanceMutation>;
updateWhatsAppInstance(variables: UpdateWhatsAppInstanceMutationVariables, options?: C): Promise<UpdateWhatsAppInstanceMutation>;
removeWhatsAppInstance(variables: RemoveWhatsAppInstanceMutationVariables, options?: C): Promise<RemoveWhatsAppInstanceMutation>;
createWhatsAppTemplate(variables: CreateWhatsAppTemplateMutationVariables, options?: C): Promise<CreateWhatsAppTemplateMutation>;
editWhatsAppTemplate(variables: EditWhatsAppTemplateMutationVariables, options?: C): Promise<EditWhatsAppTemplateMutation>;
};
export type Sdk = ReturnType<typeof getSdk>;
export declare const serviceName = "@droz/whatsapp";
"use strict";
/* istanbul ignore file */
Object.defineProperty(exports, "__esModule", { value: true });
exports.serviceName = exports.RemoveWhatsAppInstanceDocument = exports.UpdateWhatsAppInstanceDocument = exports.CreateWhatsAppInstanceDocument = exports.ListWhatsAppPhoneNumbersDocument = exports.ListWhatsAppInstancesDocument = exports.GetWhatsAppInstanceDocument = exports.WhatsAppPhoneNumberFragmentDoc = exports.WhatsappInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
exports.serviceName = exports.EditWhatsAppTemplateDocument = exports.CreateWhatsAppTemplateDocument = exports.RemoveWhatsAppInstanceDocument = exports.UpdateWhatsAppInstanceDocument = exports.CreateWhatsAppInstanceDocument = exports.GetWhatsAppTemplateDocument = exports.ListWhatsAppTemplatesDocument = exports.ListWhatsAppPhoneNumbersDocument = exports.ListWhatsAppInstancesDocument = exports.GetWhatsAppInstanceDocument = exports.WhatsAppPhoneNumberFragmentDoc = exports.WhatsAppTemplateFragmentDoc = exports.WhatsappInstanceFragmentDoc = exports.Typenames = exports.TemplateStatus = exports.TemplateHeaderFormat = exports.TemplateComponentType = exports.TemplateCategory = exports.TemplateButtonsType = exports.Can = exports.AppInstanceStatus = void 0;
exports.getSdk = getSdk;

@@ -19,2 +19,39 @@ var AppInstanceStatus;

})(Can || (exports.Can = Can = {}));
var TemplateButtonsType;
(function (TemplateButtonsType) {
TemplateButtonsType["CopyCode"] = "COPY_CODE";
TemplateButtonsType["QuickReply"] = "QUICK_REPLY";
TemplateButtonsType["Url"] = "URL";
})(TemplateButtonsType || (exports.TemplateButtonsType = TemplateButtonsType = {}));
var TemplateCategory;
(function (TemplateCategory) {
TemplateCategory["Authentication"] = "AUTHENTICATION";
TemplateCategory["Marketing"] = "MARKETING";
TemplateCategory["Utility"] = "UTILITY";
})(TemplateCategory || (exports.TemplateCategory = TemplateCategory = {}));
var TemplateComponentType;
(function (TemplateComponentType) {
TemplateComponentType["Body"] = "BODY";
TemplateComponentType["Buttons"] = "BUTTONS";
TemplateComponentType["Footer"] = "FOOTER";
TemplateComponentType["Header"] = "HEADER";
})(TemplateComponentType || (exports.TemplateComponentType = TemplateComponentType = {}));
var TemplateHeaderFormat;
(function (TemplateHeaderFormat) {
TemplateHeaderFormat["Document"] = "DOCUMENT";
TemplateHeaderFormat["Image"] = "IMAGE";
TemplateHeaderFormat["Text"] = "TEXT";
TemplateHeaderFormat["Video"] = "VIDEO";
})(TemplateHeaderFormat || (exports.TemplateHeaderFormat = TemplateHeaderFormat = {}));
var TemplateStatus;
(function (TemplateStatus) {
TemplateStatus["Approved"] = "APPROVED";
TemplateStatus["Deleted"] = "DELETED";
TemplateStatus["InAppeal"] = "IN_APPEAL";
TemplateStatus["LimitExceeded"] = "LIMIT_EXCEEDED";
TemplateStatus["Paused"] = "PAUSED";
TemplateStatus["Pending"] = "PENDING";
TemplateStatus["PendingDeletion"] = "PENDING_DELETION";
TemplateStatus["Rejected"] = "REJECTED";
})(TemplateStatus || (exports.TemplateStatus = TemplateStatus = {}));
var Typenames;

@@ -39,2 +76,31 @@ (function (Typenames) {

`;
exports.WhatsAppTemplateFragmentDoc = `
fragment whatsAppTemplate on WhatsAppTemplate {
id
name
category
status
components {
body {
example
text
}
header {
text
example
format
}
footer {
text
example
}
buttons {
example
text
type
url
}
}
}
`;
exports.WhatsAppPhoneNumberFragmentDoc = `

@@ -67,2 +133,16 @@ fragment whatsAppPhoneNumber on WhatsAppPhoneNumber {

${exports.WhatsAppPhoneNumberFragmentDoc}`;
exports.ListWhatsAppTemplatesDocument = `
query listWhatsAppTemplates($credentialsId: ID!, $status: TemplateStatus) {
listWhatsAppTemplates(credentialsId: $credentialsId, status: $status) {
...whatsAppTemplate
}
}
${exports.WhatsAppTemplateFragmentDoc}`;
exports.GetWhatsAppTemplateDocument = `
query getWhatsAppTemplate($id: ID!, $credentialsId: ID!) {
getWhatsAppTemplate(id: $id, credentialsId: $credentialsId) {
...whatsAppTemplate
}
}
${exports.WhatsAppTemplateFragmentDoc}`;
exports.CreateWhatsAppInstanceDocument = `

@@ -89,2 +169,17 @@ mutation createWhatsAppInstance($input: CreateWhatsAppInstanceInput!) {

${exports.WhatsappInstanceFragmentDoc}`;
exports.CreateWhatsAppTemplateDocument = `
mutation createWhatsAppTemplate($input: CreateWhatsAppTemplateInput!) {
createWhatsAppTemplate(input: $input) {
id
name
status
category
}
}
`;
exports.EditWhatsAppTemplateDocument = `
mutation editWhatsAppTemplate($input: EditWhatsAppTemplateInput!) {
editWhatsAppTemplate(input: $input)
}
`;
function getSdk(requester) {

@@ -101,2 +196,8 @@ return {

},
listWhatsAppTemplates(variables, options) {
return requester(exports.ListWhatsAppTemplatesDocument, variables, options);
},
getWhatsAppTemplate(variables, options) {
return requester(exports.GetWhatsAppTemplateDocument, variables, options);
},
createWhatsAppInstance(variables, options) {

@@ -110,2 +211,8 @@ return requester(exports.CreateWhatsAppInstanceDocument, variables, options);

return requester(exports.RemoveWhatsAppInstanceDocument, variables, options);
},
createWhatsAppTemplate(variables, options) {
return requester(exports.CreateWhatsAppTemplateDocument, variables, options);
},
editWhatsAppTemplate(variables, options) {
return requester(exports.EditWhatsAppTemplateDocument, variables, options);
}

@@ -112,0 +219,0 @@ };

@@ -18,2 +18,10 @@ export * from './sdks/whatsapp';

}>, options?: unknown): Promise<import("./sdks/whatsapp").ListWhatsAppPhoneNumbersQuery>;
listWhatsAppTemplates(variables: import("./sdks/whatsapp").Exact<{
credentialsId: import("./sdks/whatsapp").Scalars["ID"]["input"];
status?: import("./sdks/whatsapp").InputMaybe<import("./sdks/whatsapp").TemplateStatus>;
}>, options?: unknown): Promise<import("./sdks/whatsapp").ListWhatsAppTemplatesQuery>;
getWhatsAppTemplate(variables: import("./sdks/whatsapp").Exact<{
id: import("./sdks/whatsapp").Scalars["ID"]["input"];
credentialsId: import("./sdks/whatsapp").Scalars["ID"]["input"];
}>, options?: unknown): Promise<import("./sdks/whatsapp").GetWhatsAppTemplateQuery>;
createWhatsAppInstance(variables: import("./sdks/whatsapp").Exact<{

@@ -28,4 +36,10 @@ input: import("./sdks/whatsapp").CreateWhatsAppInstanceInput;

}>, options?: unknown): Promise<import("./sdks/whatsapp").RemoveWhatsAppInstanceMutation>;
createWhatsAppTemplate(variables: import("./sdks/whatsapp").Exact<{
input: import("./sdks/whatsapp").CreateWhatsAppTemplateInput;
}>, options?: unknown): Promise<import("./sdks/whatsapp").CreateWhatsAppTemplateMutation>;
editWhatsAppTemplate(variables: import("./sdks/whatsapp").Exact<{
input: import("./sdks/whatsapp").EditWhatsAppTemplateInput;
}>, options?: unknown): Promise<import("./sdks/whatsapp").EditWhatsAppTemplateMutation>;
};
export declare class WhatsApp extends WhatsApp_base {
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc