@droz-js/sdk
Advanced tools
Comparing version 0.6.6 to 0.6.7
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.6.6", | ||
"version": "0.6.7", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -97,5 +97,11 @@ "use strict"; | ||
name | ||
alternateName | ||
phone | ||
document | ||
externalId | ||
emails | ||
phones | ||
documents | ||
externalIds | ||
createdAt | ||
@@ -102,0 +108,0 @@ updatedAt |
@@ -138,2 +138,6 @@ export type Maybe<T> = T; | ||
export type AwsAccountParameters = { | ||
metaAppId?: Maybe<Scalars['String']['output']>; | ||
metaClientSecret?: Maybe<Scalars['String']['output']>; | ||
metaConfigurationId?: Maybe<Scalars['String']['output']>; | ||
metaWebhookVerificationToken?: Maybe<Scalars['String']['output']>; | ||
openAIApiKey?: Maybe<Scalars['String']['output']>; | ||
@@ -382,2 +386,6 @@ typesenseApiKey?: Maybe<Scalars['String']['output']>; | ||
id: Scalars['ID']['input']; | ||
metaAppId?: InputMaybe<Scalars['String']['input']>; | ||
metaClientSecret?: InputMaybe<Scalars['String']['input']>; | ||
metaConfigurationId?: InputMaybe<Scalars['String']['input']>; | ||
metaWebhookVerificationToken?: InputMaybe<Scalars['String']['input']>; | ||
openAIApiKey?: InputMaybe<Scalars['String']['input']>; | ||
@@ -394,3 +402,3 @@ typesenseApiKey?: InputMaybe<Scalars['String']['input']>; | ||
availableRegions: Array<RegionFragment>; | ||
parameters: Pick<AwsAccountParameters, 'typesenseNodes' | 'typesenseApiKey' | 'openAIApiKey'>; | ||
parameters: Pick<AwsAccountParameters, 'typesenseNodes' | 'typesenseApiKey' | 'openAIApiKey' | 'metaAppId' | 'metaClientSecret' | 'metaConfigurationId' | 'metaWebhookVerificationToken'>; | ||
}); | ||
@@ -541,3 +549,3 @@ export type RegionFragment = Pick<Region, 'name'>; | ||
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n "; | ||
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n }\n}\n \n fragment region on Region {\n name\n}\n "; | ||
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n }\n}\n \n fragment region on Region {\n name\n}\n "; | ||
export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n "; | ||
@@ -548,5 +556,5 @@ export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n "; | ||
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n "; | ||
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n }\n}\n \n fragment region on Region {\n name\n}\n "; | ||
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n }\n}\n \n fragment region on Region {\n name\n}\n "; | ||
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n "; | ||
export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n }\n}\n \n fragment region on Region {\n name\n}\n "; | ||
export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n }\n}\n \n fragment region on Region {\n name\n}\n "; | ||
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n "; | ||
@@ -553,0 +561,0 @@ export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n "; |
@@ -53,2 +53,6 @@ "use strict"; | ||
openAIApiKey | ||
metaAppId | ||
metaClientSecret | ||
metaConfigurationId | ||
metaWebhookVerificationToken | ||
} | ||
@@ -55,0 +59,0 @@ } |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = 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.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.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 = void 0; | ||
exports.GetCredentialsDocument = 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.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 = void 0; | ||
var AppInstanceStatus; | ||
@@ -29,2 +29,3 @@ (function (AppInstanceStatus) { | ||
CredentialsType["Basic"] = "Basic"; | ||
CredentialsType["Meta"] = "Meta"; | ||
CredentialsType["OAuth2"] = "OAuth2"; | ||
@@ -146,2 +147,37 @@ })(CredentialsType || (exports.CredentialsType = CredentialsType = {})); | ||
`; | ||
exports.CredentialsWithSecretFragmentDoc = ` | ||
fragment credentialsWithSecret on Credentials { | ||
... on ICredentials { | ||
id | ||
type | ||
description | ||
systemCredentials | ||
createdAt | ||
updatedAt | ||
} | ||
... on BasicCredentialsType { | ||
credentials { | ||
username | ||
password | ||
} | ||
} | ||
... on ApiKeyCredentialsType { | ||
credentials { | ||
apiKey | ||
} | ||
} | ||
... on OAuth2CredentialsType { | ||
credentials { | ||
clientId | ||
clientSecret | ||
} | ||
} | ||
... on MetaCredentialsType { | ||
credentials { | ||
code | ||
accessToken | ||
} | ||
} | ||
} | ||
`; | ||
exports.CustomerFragmentDoc = ` | ||
@@ -155,2 +191,7 @@ fragment customer on Customer { | ||
document | ||
externalId | ||
emails | ||
phones | ||
documents | ||
externalIds | ||
apps { | ||
@@ -473,30 +514,6 @@ id | ||
getCredentialsSecret(id: $id) { | ||
... on ICredentials { | ||
id | ||
type | ||
description | ||
systemCredentials | ||
updatedAt | ||
createdAt | ||
} | ||
... on BasicCredentialsType { | ||
credentials { | ||
username | ||
password | ||
} | ||
} | ||
... on ApiKeyCredentialsType { | ||
credentials { | ||
apiKey | ||
} | ||
} | ||
... on OAuth2CredentialsType { | ||
credentials { | ||
clientId | ||
clientSecret | ||
} | ||
} | ||
...credentialsWithSecret | ||
} | ||
} | ||
`; | ||
${exports.CredentialsWithSecretFragmentDoc}`; | ||
exports.ListCredentialsDocument = ` | ||
@@ -503,0 +520,0 @@ query listCredentials($type: CredentialsType) { |
@@ -128,7 +128,5 @@ export type Maybe<T> = T; | ||
} | ||
export type CreateWhatsappInstanceInput = { | ||
export type CreateWhatsAppInstanceInput = { | ||
exchangeCode: Scalars['String']['input']; | ||
name: Scalars['String']['input']; | ||
phoneNumberId: Scalars['String']['input']; | ||
wabaId: Scalars['String']['input']; | ||
instance: InstanceInput; | ||
}; | ||
@@ -143,10 +141,15 @@ 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>; | ||
createWhatsAppInstance?: Maybe<WhatsAppInstance>; | ||
receiveWhatsAppMessage?: Maybe<Scalars['Void']['output']>; | ||
sendWhatsappMessage?: Maybe<Scalars['Void']['output']>; | ||
version?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type MutationCreateWhatsappInstanceArgs = { | ||
input: CreateWhatsappInstanceInput; | ||
export type MutationCreateWhatsAppInstanceArgs = { | ||
input: CreateWhatsAppInstanceInput; | ||
}; | ||
@@ -156,5 +159,2 @@ export type MutationReceiveWhatsAppMessageArgs = { | ||
}; | ||
export type MutationSendWhatsappMessageArgs = { | ||
input: SendWhatsappMessageInput; | ||
}; | ||
export type NumberFilterInput = { | ||
@@ -176,7 +176,7 @@ btw?: InputMaybe<Array<Scalars['Float']['input']>>; | ||
getHttpEndpoint?: Maybe<Scalars['String']['output']>; | ||
getWhatsappInstance?: Maybe<WhatsappInstance>; | ||
listWhatsappInstances?: Maybe<Array<Maybe<WhatsappInstance>>>; | ||
getWhatsAppInstance?: Maybe<WhatsAppInstance>; | ||
listWhatsAppInstances?: Maybe<Array<Maybe<WhatsAppInstance>>>; | ||
version?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type QueryGetWhatsappInstanceArgs = { | ||
export type QueryGetWhatsAppInstanceArgs = { | ||
id: Scalars['ID']['input']; | ||
@@ -210,7 +210,2 @@ }; | ||
}; | ||
export type SendWhatsappMessageInput = { | ||
instanceId: Scalars['ID']['input']; | ||
message: Scalars['String']['input']; | ||
recipient: Scalars['String']['input']; | ||
}; | ||
export type StringFilterInput = { | ||
@@ -225,6 +220,7 @@ eq?: InputMaybe<Scalars['String']['input']>; | ||
GraphqlSubscriptions = "GraphqlSubscriptions", | ||
Whatsapp = "Whatsapp" | ||
WhatsApp = "WhatsApp" | ||
} | ||
export type WhatsappInstance = { | ||
export type WhatsAppInstance = { | ||
createdAt: Scalars['DateTime']['output']; | ||
credentialsId: Scalars['ID']['output']; | ||
id: Scalars['ID']['output']; | ||
@@ -236,20 +232,20 @@ name: Scalars['String']['output']; | ||
}; | ||
export type WhatsappInstanceFragment = Pick<WhatsappInstance, 'id' | 'name' | 'phoneNumberId' | 'wabaId' | 'createdAt' | 'updatedAt'>; | ||
export type GetWhatsappInstanceQueryVariables = Exact<{ | ||
export type WhatsappInstanceFragment = Pick<WhatsAppInstance, 'id' | 'name' | 'phoneNumberId' | 'wabaId' | 'credentialsId' | 'createdAt' | 'updatedAt'>; | ||
export type GetWhatsAppInstanceQueryVariables = Exact<{ | ||
id: Scalars['ID']['input']; | ||
}>; | ||
export type GetWhatsappInstanceQuery = { | ||
getWhatsappInstance?: Maybe<WhatsappInstanceFragment>; | ||
export type GetWhatsAppInstanceQuery = { | ||
getWhatsAppInstance?: Maybe<WhatsappInstanceFragment>; | ||
}; | ||
export type ListWhatsappInstancesQueryVariables = Exact<{ | ||
export type ListWhatsAppInstancesQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListWhatsappInstancesQuery = { | ||
listWhatsappInstances?: Maybe<Array<Maybe<WhatsappInstanceFragment>>>; | ||
export type ListWhatsAppInstancesQuery = { | ||
listWhatsAppInstances?: Maybe<Array<Maybe<WhatsappInstanceFragment>>>; | ||
}; | ||
export type CreateWhatsappInstanceMutationVariables = Exact<{ | ||
input: CreateWhatsappInstanceInput; | ||
export type CreateWhatsAppInstanceMutationVariables = Exact<{ | ||
input: CreateWhatsAppInstanceInput; | ||
}>; | ||
export type CreateWhatsappInstanceMutation = { | ||
createWhatsappInstance?: Maybe<WhatsappInstanceFragment>; | ||
export type CreateWhatsAppInstanceMutation = { | ||
createWhatsAppInstance?: Maybe<WhatsappInstanceFragment>; | ||
}; | ||
@@ -260,12 +256,12 @@ export type ReceiveWhatsAppMessageMutationVariables = Exact<{ | ||
export type ReceiveWhatsAppMessageMutation = Pick<Mutation, 'receiveWhatsAppMessage'>; | ||
export declare const WhatsappInstanceFragmentDoc = "\n fragment whatsappInstance on WhatsappInstance {\n id\n name\n phoneNumberId\n wabaId\n createdAt\n updatedAt\n}\n "; | ||
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 createdAt\n updatedAt\n}\n "; | ||
export declare const ListWhatsappInstancesDocument = "\n query listWhatsappInstances {\n listWhatsappInstances {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsappInstance {\n id\n name\n phoneNumberId\n wabaId\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 createdAt\n updatedAt\n}\n "; | ||
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 "; | ||
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 ListWhatsAppInstancesDocument = "\n query listWhatsAppInstances {\n listWhatsAppInstances {\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 type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
export declare function getSdk<C>(requester: Requester<C>): { | ||
getWhatsappInstance(variables: GetWhatsappInstanceQueryVariables, options?: C): Promise<GetWhatsappInstanceQuery>; | ||
listWhatsappInstances(variables?: ListWhatsappInstancesQueryVariables, options?: C): Promise<ListWhatsappInstancesQuery>; | ||
createWhatsappInstance(variables: CreateWhatsappInstanceMutationVariables, options?: C): Promise<CreateWhatsappInstanceMutation>; | ||
getWhatsAppInstance(variables: GetWhatsAppInstanceQueryVariables, options?: C): Promise<GetWhatsAppInstanceQuery>; | ||
listWhatsAppInstances(variables?: ListWhatsAppInstancesQueryVariables, options?: C): Promise<ListWhatsAppInstancesQuery>; | ||
createWhatsAppInstance(variables: CreateWhatsAppInstanceMutationVariables, options?: C): Promise<CreateWhatsAppInstanceMutation>; | ||
receiveWhatsAppMessage(variables: ReceiveWhatsAppMessageMutationVariables, options?: C): Promise<ReceiveWhatsAppMessageMutation>; | ||
@@ -272,0 +268,0 @@ }; |
"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.ReceiveWhatsAppMessageDocument = exports.CreateWhatsAppInstanceDocument = exports.ListWhatsAppInstancesDocument = exports.GetWhatsAppInstanceDocument = exports.WhatsappInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -23,6 +23,6 @@ (function (AppInstanceStatus) { | ||
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions"; | ||
Typenames["Whatsapp"] = "Whatsapp"; | ||
Typenames["WhatsApp"] = "WhatsApp"; | ||
})(Typenames || (exports.Typenames = Typenames = {})); | ||
exports.WhatsappInstanceFragmentDoc = ` | ||
fragment whatsappInstance on WhatsappInstance { | ||
fragment whatsappInstance on WhatsAppInstance { | ||
id | ||
@@ -32,2 +32,3 @@ name | ||
wabaId | ||
credentialsId | ||
createdAt | ||
@@ -37,5 +38,5 @@ updatedAt | ||
`; | ||
exports.GetWhatsappInstanceDocument = ` | ||
query getWhatsappInstance($id: ID!) { | ||
getWhatsappInstance(id: $id) { | ||
exports.GetWhatsAppInstanceDocument = ` | ||
query getWhatsAppInstance($id: ID!) { | ||
getWhatsAppInstance(id: $id) { | ||
...whatsappInstance | ||
@@ -45,5 +46,5 @@ } | ||
${exports.WhatsappInstanceFragmentDoc}`; | ||
exports.ListWhatsappInstancesDocument = ` | ||
query listWhatsappInstances { | ||
listWhatsappInstances { | ||
exports.ListWhatsAppInstancesDocument = ` | ||
query listWhatsAppInstances { | ||
listWhatsAppInstances { | ||
...whatsappInstance | ||
@@ -53,5 +54,5 @@ } | ||
${exports.WhatsappInstanceFragmentDoc}`; | ||
exports.CreateWhatsappInstanceDocument = ` | ||
mutation createWhatsappInstance($input: CreateWhatsappInstanceInput!) { | ||
createWhatsappInstance(input: $input) { | ||
exports.CreateWhatsAppInstanceDocument = ` | ||
mutation createWhatsAppInstance($input: CreateWhatsAppInstanceInput!) { | ||
createWhatsAppInstance(input: $input) { | ||
...whatsappInstance | ||
@@ -68,10 +69,10 @@ } | ||
return { | ||
getWhatsappInstance(variables, options) { | ||
return requester(exports.GetWhatsappInstanceDocument, variables, options); | ||
getWhatsAppInstance(variables, options) { | ||
return requester(exports.GetWhatsAppInstanceDocument, variables, options); | ||
}, | ||
listWhatsappInstances(variables, options) { | ||
return requester(exports.ListWhatsappInstancesDocument, variables, options); | ||
listWhatsAppInstances(variables, options) { | ||
return requester(exports.ListWhatsAppInstancesDocument, variables, options); | ||
}, | ||
createWhatsappInstance(variables, options) { | ||
return requester(exports.CreateWhatsappInstanceDocument, variables, options); | ||
createWhatsAppInstance(variables, options) { | ||
return requester(exports.CreateWhatsAppInstanceDocument, variables, options); | ||
}, | ||
@@ -78,0 +79,0 @@ receiveWhatsAppMessage(variables, options) { |
export * from './sdks/whatsapp'; | ||
export declare const Whatsapp: new (options?: import("./client/http").HttpClientOptions) => { | ||
export declare const WhatsApp: new (options?: import("./client/http").HttpClientOptions) => { | ||
readonly http: any; | ||
@@ -9,11 +9,11 @@ forTenant(tenant: string): any; | ||
} & { | ||
getWhatsappInstance(variables: import("./sdks/whatsapp").Exact<{ | ||
getWhatsAppInstance(variables: import("./sdks/whatsapp").Exact<{ | ||
id: string; | ||
}>, options?: unknown): Promise<import("./sdks/whatsapp").GetWhatsappInstanceQuery>; | ||
listWhatsappInstances(variables?: import("./sdks/whatsapp").Exact<{ | ||
}>, options?: unknown): Promise<import("./sdks/whatsapp").GetWhatsAppInstanceQuery>; | ||
listWhatsAppInstances(variables?: import("./sdks/whatsapp").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/whatsapp").ListWhatsappInstancesQuery>; | ||
createWhatsappInstance(variables: import("./sdks/whatsapp").Exact<{ | ||
input: import("./sdks/whatsapp").CreateWhatsappInstanceInput; | ||
}>, options?: unknown): Promise<import("./sdks/whatsapp").CreateWhatsappInstanceMutation>; | ||
}>, options?: unknown): Promise<import("./sdks/whatsapp").ListWhatsAppInstancesQuery>; | ||
createWhatsAppInstance(variables: import("./sdks/whatsapp").Exact<{ | ||
input: import("./sdks/whatsapp").CreateWhatsAppInstanceInput; | ||
}>, options?: unknown): Promise<import("./sdks/whatsapp").CreateWhatsAppInstanceMutation>; | ||
receiveWhatsAppMessage(variables: import("./sdks/whatsapp").Exact<{ | ||
@@ -20,0 +20,0 @@ input: import("./sdks/whatsapp").ReceiveWhatsAppMessageInput; |
@@ -17,6 +17,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Whatsapp = void 0; | ||
exports.WhatsApp = void 0; | ||
const http_1 = require("./client/http"); | ||
const whatsapp_1 = require("./sdks/whatsapp"); | ||
__exportStar(require("./sdks/whatsapp"), exports); | ||
exports.Whatsapp = (0, http_1.HttpClientBuilder)(whatsapp_1.serviceName, whatsapp_1.getSdk); | ||
exports.WhatsApp = (0, http_1.HttpClientBuilder)(whatsapp_1.serviceName, whatsapp_1.getSdk); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
561462
12501