@droz-js/sdk
Advanced tools
Comparing version 0.6.10 to 0.6.11
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.6.10", | ||
"version": "0.6.11", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = void 0; | ||
exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = void 0; | ||
var AppInstanceStatus; | ||
@@ -48,2 +48,7 @@ (function (AppInstanceStatus) { | ||
})(PatchOperation || (exports.PatchOperation = PatchOperation = {})); | ||
var SessionStatus; | ||
(function (SessionStatus) { | ||
SessionStatus["Active"] = "active"; | ||
SessionStatus["Inactive"] = "inactive"; | ||
})(SessionStatus || (exports.SessionStatus = SessionStatus = {})); | ||
var StateMachineConfigStatus; | ||
@@ -238,2 +243,3 @@ (function (StateMachineConfigStatus) { | ||
triggerDrn | ||
status | ||
} | ||
@@ -659,6 +665,3 @@ `; | ||
startSession(input: $input) { | ||
sessionId | ||
customerId | ||
stateMachineId | ||
triggerDrn | ||
...session | ||
customer @include(if: $withCustomer) { | ||
@@ -669,3 +672,4 @@ ...customer | ||
} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.SessionFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
exports.GetSessionDocument = ` | ||
@@ -672,0 +676,0 @@ query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) { |
@@ -133,4 +133,6 @@ export type Maybe<T> = T; | ||
export type CreateWhatsAppInstanceInput = { | ||
exchangeCode: Scalars['String']['input']; | ||
instance: InstanceInput; | ||
credentialsId: Scalars['ID']['input']; | ||
name: Scalars['String']['input']; | ||
phoneNumberId: Scalars['String']['input']; | ||
wabaId: Scalars['String']['input']; | ||
}; | ||
@@ -145,11 +147,6 @@ export type I18nText = { | ||
}; | ||
export type InstanceInput = { | ||
credentialsId: Scalars['ID']['input']; | ||
name: Scalars['String']['input']; | ||
phoneNumberId: Scalars['String']['input']; | ||
wabaId: Scalars['String']['input']; | ||
}; | ||
export type Mutation = { | ||
createWhatsAppInstance?: Maybe<WhatsAppInstance>; | ||
receiveWhatsAppMessage?: Maybe<Scalars['Void']['output']>; | ||
removeWhatsAppInstance?: Maybe<WhatsAppInstance>; | ||
updateWhatsAppInstance?: Maybe<WhatsAppInstance>; | ||
version?: Maybe<Scalars['String']['output']>; | ||
@@ -160,5 +157,8 @@ }; | ||
}; | ||
export type MutationReceiveWhatsAppMessageArgs = { | ||
input: ReceiveWhatsAppMessageInput; | ||
export type MutationRemoveWhatsAppInstanceArgs = { | ||
input: RemoveWhatsAppInstanceInput; | ||
}; | ||
export type MutationUpdateWhatsAppInstanceArgs = { | ||
input: UpdateWhatsAppInstanceInput; | ||
}; | ||
export type NumberMatcher = { | ||
@@ -196,6 +196,4 @@ btw?: Maybe<Array<Scalars['Number']['output']>>; | ||
}; | ||
export type ReceiveWhatsAppMessageInput = { | ||
change: Scalars['JSON']['input']; | ||
whatsAppBusinessApiId: Scalars['ID']['input']; | ||
whatsAppPhoneNumberId: Scalars['ID']['input']; | ||
export type RemoveWhatsAppInstanceInput = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
@@ -255,2 +253,8 @@ export type SearchResultsFacet = { | ||
} | ||
export type UpdateWhatsAppInstanceInput = { | ||
credentialsId?: InputMaybe<Scalars['ID']['input']>; | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
phoneNumberId?: InputMaybe<Scalars['String']['input']>; | ||
wabaId?: InputMaybe<Scalars['String']['input']>; | ||
}; | ||
export type WhatsAppInstance = { | ||
@@ -284,6 +288,14 @@ createdAt: Scalars['DateTime']['output']; | ||
}; | ||
export type ReceiveWhatsAppMessageMutationVariables = Exact<{ | ||
input: ReceiveWhatsAppMessageInput; | ||
export type UpdateWhatsAppInstanceMutationVariables = Exact<{ | ||
input: UpdateWhatsAppInstanceInput; | ||
}>; | ||
export type ReceiveWhatsAppMessageMutation = Pick<Mutation, 'receiveWhatsAppMessage'>; | ||
export type UpdateWhatsAppInstanceMutation = { | ||
updateWhatsAppInstance?: Maybe<WhatsappInstanceFragment>; | ||
}; | ||
export type RemoveWhatsAppInstanceMutationVariables = Exact<{ | ||
input: RemoveWhatsAppInstanceInput; | ||
}>; | ||
export type RemoveWhatsAppInstanceMutation = { | ||
removeWhatsAppInstance?: Maybe<WhatsappInstanceFragment>; | ||
}; | ||
export declare const WhatsappInstanceFragmentDoc = "\n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n "; | ||
@@ -293,3 +305,4 @@ 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 phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\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 phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n "; | ||
export declare const ReceiveWhatsAppMessageDocument = "\n mutation receiveWhatsAppMessage($input: ReceiveWhatsAppMessageInput!) {\n receiveWhatsAppMessage(input: $input)\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 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 phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n "; | ||
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
@@ -300,5 +313,6 @@ export declare function getSdk<C>(requester: Requester<C>): { | ||
createWhatsAppInstance(variables: CreateWhatsAppInstanceMutationVariables, options?: C): Promise<CreateWhatsAppInstanceMutation>; | ||
receiveWhatsAppMessage(variables: ReceiveWhatsAppMessageMutationVariables, options?: C): Promise<ReceiveWhatsAppMessageMutation>; | ||
updateWhatsAppInstance(variables: UpdateWhatsAppInstanceMutationVariables, options?: C): Promise<UpdateWhatsAppInstanceMutation>; | ||
removeWhatsAppInstance(variables: RemoveWhatsAppInstanceMutationVariables, options?: C): Promise<RemoveWhatsAppInstanceMutation>; | ||
}; | ||
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.getSdk = exports.ReceiveWhatsAppMessageDocument = exports.CreateWhatsAppInstanceDocument = exports.ListWhatsAppInstancesDocument = exports.GetWhatsAppInstanceDocument = exports.WhatsappInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.RemoveWhatsAppInstanceDocument = exports.UpdateWhatsAppInstanceDocument = exports.CreateWhatsAppInstanceDocument = exports.ListWhatsAppInstancesDocument = exports.GetWhatsAppInstanceDocument = exports.WhatsappInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -57,7 +57,16 @@ (function (AppInstanceStatus) { | ||
${exports.WhatsappInstanceFragmentDoc}`; | ||
exports.ReceiveWhatsAppMessageDocument = ` | ||
mutation receiveWhatsAppMessage($input: ReceiveWhatsAppMessageInput!) { | ||
receiveWhatsAppMessage(input: $input) | ||
exports.UpdateWhatsAppInstanceDocument = ` | ||
mutation updateWhatsAppInstance($input: UpdateWhatsAppInstanceInput!) { | ||
updateWhatsAppInstance(input: $input) { | ||
...whatsappInstance | ||
} | ||
} | ||
`; | ||
${exports.WhatsappInstanceFragmentDoc}`; | ||
exports.RemoveWhatsAppInstanceDocument = ` | ||
mutation removeWhatsAppInstance($input: RemoveWhatsAppInstanceInput!) { | ||
removeWhatsAppInstance(input: $input) { | ||
...whatsappInstance | ||
} | ||
} | ||
${exports.WhatsappInstanceFragmentDoc}`; | ||
function getSdk(requester) { | ||
@@ -74,4 +83,7 @@ return { | ||
}, | ||
receiveWhatsAppMessage(variables, options) { | ||
return requester(exports.ReceiveWhatsAppMessageDocument, variables, options); | ||
updateWhatsAppInstance(variables, options) { | ||
return requester(exports.UpdateWhatsAppInstanceDocument, variables, options); | ||
}, | ||
removeWhatsAppInstance(variables, options) { | ||
return requester(exports.RemoveWhatsAppInstanceDocument, variables, options); | ||
} | ||
@@ -78,0 +90,0 @@ }; |
@@ -18,5 +18,8 @@ export * from './sdks/whatsapp'; | ||
}>, options?: unknown): Promise<import("./sdks/whatsapp").CreateWhatsAppInstanceMutation>; | ||
receiveWhatsAppMessage(variables: import("./sdks/whatsapp").Exact<{ | ||
input: import("./sdks/whatsapp").ReceiveWhatsAppMessageInput; | ||
}>, options?: unknown): Promise<import("./sdks/whatsapp").ReceiveWhatsAppMessageMutation>; | ||
updateWhatsAppInstance(variables: import("./sdks/whatsapp").Exact<{ | ||
input: import("./sdks/whatsapp").UpdateWhatsAppInstanceInput; | ||
}>, options?: unknown): Promise<import("./sdks/whatsapp").UpdateWhatsAppInstanceMutation>; | ||
removeWhatsAppInstance(variables: import("./sdks/whatsapp").Exact<{ | ||
input: import("./sdks/whatsapp").RemoveWhatsAppInstanceInput; | ||
}>, options?: unknown): Promise<import("./sdks/whatsapp").RemoveWhatsAppInstanceMutation>; | ||
}; |
Sorry, the diff of this file is too big to display
612145
70
13757