@droz-js/sdk
Advanced tools
Comparing version 0.6.2 to 0.6.3
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -324,3 +324,3 @@ export type Maybe<T> = T; | ||
}; | ||
export type ReclameAquiInstanceFragment = (Pick<ReclameAquiInstance, 'id' | 'name' | 'credentialId' | 'companyId' | 'cronJobId' | 'status' | 'failingReason' | 'tags' | 'createdAt' | 'updatedAt'> & { | ||
export type ReclameAquiInstanceFragment = (Pick<ReclameAquiInstance, 'id' | 'name' | 'credentialId' | 'companyId' | 'cronJobId' | 'status' | 'failingReason' | 'tags' | 'cutoffSyncDate' | 'createdAt' | 'updatedAt'> & { | ||
statusTags?: Maybe<Pick<ReclameAquiStatusTags, 'notAnswered' | 'answered' | 'consumerAnswer' | 'companyAnswer' | 'rated' | 'frozen' | 'disabledByConsumer' | 'inactiveInReclameAqui' | 'ratedResolved' | 'ratedUnresolved'>>; | ||
@@ -393,11 +393,11 @@ actionsTags?: Maybe<Pick<ReclameAquiActionsTags, 'mediationRequested' | 'mediationDenied' | 'mediationAccepted' | 'evaluationRequested'>>; | ||
export type ForceReSyncReclameAquiTicketMutation = Pick<Mutation, 'forceReSyncReclameAquiTicket'>; | ||
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetReclameAquiInstanceDocument = "\n query getReclameAquiInstance($id: ID!) {\n getReclameAquiInstance(id: $id) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListReclameAquiInstancesDocument = "\n query listReclameAquiInstances {\n listReclameAquiInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n cutoffSyncDate\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetReclameAquiInstanceDocument = "\n query getReclameAquiInstance($id: ID!) {\n getReclameAquiInstance(id: $id) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n cutoffSyncDate\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListReclameAquiInstancesDocument = "\n query listReclameAquiInstances {\n listReclameAquiInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n cutoffSyncDate\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListReclameAquiCompaniesDocument = "\n query listReclameAquiCompanies($credentialId: ID!) {\n listReclameAquiCompanies(credentialId: $credentialId) {\n companyId\n name\n }\n}\n "; | ||
export declare const ListReclameAquiModerationReasonsDocument = "\n query listReclameAquiModerationReasons {\n listReclameAquiModerationReasons {\n code\n description\n }\n}\n "; | ||
export declare const GetReclameAquiBillingConfigurationDocument = "\n query getReclameAquiBillingConfiguration {\n getReclameAquiBillingConfiguration {\n billingCutoffSyncDays\n maxCutoffDate\n }\n}\n "; | ||
export declare const CreateReclameAquiInstanceDocument = "\n mutation createReclameAquiInstance($input: CreateReclameAquiInstanceInput!) {\n createReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const UpdateReclameAquiInstanceDocument = "\n mutation updateReclameAquiInstance($input: UpdateReclameAquiInstanceInput!) {\n updateReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const RemoveReclameAquiInstanceDocument = "\n mutation removeReclameAquiInstance($input: RemoveReclameAquiInstanceInput!) {\n removeReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateReclameAquiInstanceDocument = "\n mutation createReclameAquiInstance($input: CreateReclameAquiInstanceInput!) {\n createReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n cutoffSyncDate\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const UpdateReclameAquiInstanceDocument = "\n mutation updateReclameAquiInstance($input: UpdateReclameAquiInstanceInput!) {\n updateReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n cutoffSyncDate\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const RemoveReclameAquiInstanceDocument = "\n mutation removeReclameAquiInstance($input: RemoveReclameAquiInstanceInput!) {\n removeReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n cutoffSyncDate\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const SendReclameAquiModerationRequestDocument = "\n mutation sendReclameAquiModerationRequest($input: SendReclameAquiModerationRequestInput!) {\n sendReclameAquiModerationRequest(input: $input) {\n success\n }\n}\n "; | ||
@@ -404,0 +404,0 @@ export declare const RequestReclameAquiTicketEvaluationDocument = "\n mutation requestReclameAquiTicketEvaluation($input: RequestReclameAquiTicketEvaluationInput!) {\n requestReclameAquiTicketEvaluation(input: $input) {\n success\n }\n}\n "; |
@@ -40,2 +40,3 @@ "use strict"; | ||
tags | ||
cutoffSyncDate | ||
statusTags { | ||
@@ -42,0 +43,0 @@ notAnswered |
@@ -114,2 +114,12 @@ export type Maybe<T> = T; | ||
} | ||
export declare enum Asserts { | ||
Cnpj = "Cnpj", | ||
Cpf = "Cpf", | ||
CpfCnpj = "Cpf_Cnpj", | ||
Email = "Email", | ||
Js = "Js", | ||
Number = "Number", | ||
Regex = "Regex", | ||
String = "String" | ||
} | ||
export declare enum Can { | ||
@@ -129,2 +139,20 @@ Manage = "manage", | ||
}; | ||
export type Condition = { | ||
all?: Maybe<Array<Maybe<NestedCondition>>>; | ||
any?: Maybe<Array<Maybe<NestedCondition>>>; | ||
not?: Maybe<NestedCondition>; | ||
}; | ||
export type ConditionInput = { | ||
all?: InputMaybe<Array<InputMaybe<NestedConditionInput>>>; | ||
any?: InputMaybe<Array<InputMaybe<NestedConditionInput>>>; | ||
not?: InputMaybe<NestedConditionInput>; | ||
}; | ||
export type ConditionalsInstance = { | ||
createdAt: Scalars['DateTime']['output']; | ||
fallback: Scalars['String']['output']; | ||
id: Scalars['ID']['output']; | ||
name: Scalars['String']['output']; | ||
rules: Array<Rule>; | ||
updatedAt: Scalars['DateTime']['output']; | ||
}; | ||
export type CreateChoicesInstanceInput = { | ||
@@ -135,2 +163,7 @@ errorMessages: Array<I18nTextInput>; | ||
}; | ||
export type CreateConditionalsInstanceInput = { | ||
fallback: Scalars['String']['input']; | ||
name: Scalars['String']['input']; | ||
rules: Array<RuleInput>; | ||
}; | ||
export type CreateEchoAppInput = { | ||
@@ -150,2 +183,8 @@ messages: Array<I18nTextInput>; | ||
}; | ||
export type CreatePromptAppInput = { | ||
name: Scalars['String']['input']; | ||
validationMessages: Array<I18nTextInput>; | ||
validations?: InputMaybe<Array<ValidationInput>>; | ||
variableName: Scalars['String']['input']; | ||
}; | ||
export type EchoInstance = { | ||
@@ -188,10 +227,16 @@ createdAt: Scalars['DateTime']['output']; | ||
createChoicesInstance?: Maybe<ChoicesInstance>; | ||
createConditionalsInstance?: Maybe<ConditionalsInstance>; | ||
createEchoInstance?: Maybe<EchoInstance>; | ||
createHttpInstance?: Maybe<HttpInstance>; | ||
createPromptInstance?: Maybe<PromptInstance>; | ||
removeChoicesInstance?: Maybe<ChoicesInstance>; | ||
removeConditionalsInstance?: Maybe<ConditionalsInstance>; | ||
removeEchoInstance?: Maybe<EchoInstance>; | ||
removeHttpInstance?: Maybe<HttpInstance>; | ||
removePromptInstance?: Maybe<PromptInstance>; | ||
updateChoicesInstance?: Maybe<ChoicesInstance>; | ||
updateConditionalsInstance?: Maybe<ConditionalsInstance>; | ||
updateEchoInstance?: Maybe<EchoInstance>; | ||
updateHttpInstance?: Maybe<HttpInstance>; | ||
updatePromptInstance?: Maybe<PromptInstance>; | ||
version?: Maybe<Scalars['String']['output']>; | ||
@@ -202,2 +247,5 @@ }; | ||
}; | ||
export type MutationCreateConditionalsInstanceArgs = { | ||
input: CreateConditionalsInstanceInput; | ||
}; | ||
export type MutationCreateEchoInstanceArgs = { | ||
@@ -209,5 +257,11 @@ input: CreateEchoAppInput; | ||
}; | ||
export type MutationCreatePromptInstanceArgs = { | ||
input: CreatePromptAppInput; | ||
}; | ||
export type MutationRemoveChoicesInstanceArgs = { | ||
input: RemoveChoicesInstanceInput; | ||
}; | ||
export type MutationRemoveConditionalsInstanceArgs = { | ||
input?: InputMaybe<RemoveConditionalsInstanceInput>; | ||
}; | ||
export type MutationRemoveEchoInstanceArgs = { | ||
@@ -219,5 +273,11 @@ id: Scalars['ID']['input']; | ||
}; | ||
export type MutationRemovePromptInstanceArgs = { | ||
input: RemovePromptAppInput; | ||
}; | ||
export type MutationUpdateChoicesInstanceArgs = { | ||
input: UpdateChoicesInstanceInput; | ||
}; | ||
export type MutationUpdateConditionalsInstanceArgs = { | ||
input: UpdateConditionalsInstanceInput; | ||
}; | ||
export type MutationUpdateEchoInstanceArgs = { | ||
@@ -229,2 +289,21 @@ input: UpdateEchoAppInput; | ||
}; | ||
export type MutationUpdatePromptInstanceArgs = { | ||
input: UpdatePromptAppInput; | ||
}; | ||
export type NestedCondition = { | ||
all?: Maybe<Array<Maybe<NestedCondition>>>; | ||
any?: Maybe<Array<Maybe<NestedCondition>>>; | ||
fact?: Maybe<Scalars['String']['output']>; | ||
not?: Maybe<NestedCondition>; | ||
operator?: Maybe<Operator>; | ||
value?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type NestedConditionInput = { | ||
all?: InputMaybe<Array<InputMaybe<NestedConditionInput>>>; | ||
any?: InputMaybe<Array<InputMaybe<NestedConditionInput>>>; | ||
fact?: InputMaybe<Scalars['String']['input']>; | ||
not?: InputMaybe<NestedConditionInput>; | ||
operator?: InputMaybe<Operator>; | ||
value?: InputMaybe<Scalars['String']['input']>; | ||
}; | ||
export type NumberFilterInput = { | ||
@@ -239,2 +318,14 @@ btw?: InputMaybe<Array<Scalars['Float']['input']>>; | ||
}; | ||
export declare enum Operator { | ||
Contains = "contains", | ||
DoesNotContain = "doesNotContain", | ||
Equal = "equal", | ||
GreaterThan = "greaterThan", | ||
GreaterThanInclusive = "greaterThanInclusive", | ||
In = "in", | ||
LessThan = "lessThan", | ||
LessThanInclusive = "lessThanInclusive", | ||
NotEqual = "notEqual", | ||
NotIn = "notIn" | ||
} | ||
export type Option = { | ||
@@ -252,11 +343,24 @@ messages: Array<I18nText>; | ||
}; | ||
export type PromptInstance = { | ||
createdAt: Scalars['DateTime']['output']; | ||
id: Scalars['ID']['output']; | ||
name: Scalars['String']['output']; | ||
updatedAt: Scalars['DateTime']['output']; | ||
validationMessages: Array<I18nText>; | ||
validations?: Maybe<Array<Validation>>; | ||
variableName: Scalars['String']['output']; | ||
}; | ||
export type Query = { | ||
app?: Maybe<Scalars['DRN']['output']>; | ||
getChoicesInstance?: Maybe<ChoicesInstance>; | ||
getConditionalsInstance?: Maybe<ConditionalsInstance>; | ||
getEchoInstance?: Maybe<EchoInstance>; | ||
getHttpEndpoint?: Maybe<Scalars['String']['output']>; | ||
getHttpInstance?: Maybe<HttpInstance>; | ||
getPromptInstance?: Maybe<PromptInstance>; | ||
listChoicesInstances: Array<ChoicesInstance>; | ||
listConditionalsInstances?: Maybe<Array<Maybe<ConditionalsInstance>>>; | ||
listEchoInstances?: Maybe<Array<Maybe<EchoInstance>>>; | ||
listHttpInstances?: Maybe<Array<Maybe<HttpInstance>>>; | ||
listPromptInstances?: Maybe<Array<Maybe<PromptInstance>>>; | ||
version?: Maybe<Scalars['String']['output']>; | ||
@@ -267,2 +371,5 @@ }; | ||
}; | ||
export type QueryGetConditionalsInstanceArgs = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type QueryGetEchoInstanceArgs = { | ||
@@ -274,5 +381,22 @@ id: Scalars['ID']['input']; | ||
}; | ||
export type QueryGetPromptInstanceArgs = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type RemoveChoicesInstanceInput = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type RemoveConditionalsInstanceInput = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type RemovePromptAppInput = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type Rule = { | ||
conditions: Condition; | ||
transition: Scalars['String']['output']; | ||
}; | ||
export type RuleInput = { | ||
conditions: ConditionInput; | ||
transition: Scalars['String']['input']; | ||
}; | ||
export type SearchResultsFacet = { | ||
@@ -307,6 +431,8 @@ name: Scalars['String']['output']; | ||
Choices = "Choices", | ||
Conditionals = "Conditionals", | ||
Echo = "Echo", | ||
GraphqlConnections = "GraphqlConnections", | ||
GraphqlSubscriptions = "GraphqlSubscriptions", | ||
Http = "Http" | ||
Http = "Http", | ||
Prompt = "Prompt" | ||
} | ||
@@ -319,2 +445,8 @@ export type UpdateChoicesInstanceInput = { | ||
}; | ||
export type UpdateConditionalsInstanceInput = { | ||
fallback?: InputMaybe<Scalars['String']['input']>; | ||
id: Scalars['ID']['input']; | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
rules?: InputMaybe<Array<InputMaybe<RuleInput>>>; | ||
}; | ||
export type UpdateEchoAppInput = { | ||
@@ -336,2 +468,23 @@ id: Scalars['ID']['input']; | ||
}; | ||
export type UpdatePromptAppInput = { | ||
id: Scalars['ID']['input']; | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
validationMessages?: InputMaybe<Array<I18nTextInput>>; | ||
validations?: InputMaybe<Array<ValidationInput>>; | ||
variableName?: InputMaybe<Scalars['String']['input']>; | ||
}; | ||
export type Validation = { | ||
assert?: Maybe<Asserts>; | ||
code?: Maybe<Scalars['String']['output']>; | ||
max?: Maybe<Scalars['Int']['output']>; | ||
min?: Maybe<Scalars['Int']['output']>; | ||
regex?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type ValidationInput = { | ||
assert: Asserts; | ||
code?: InputMaybe<Scalars['String']['input']>; | ||
max?: InputMaybe<Scalars['Int']['input']>; | ||
min?: InputMaybe<Scalars['Int']['input']>; | ||
regex?: InputMaybe<Scalars['String']['input']>; | ||
}; | ||
export type ChoicesInstanceFragment = (Pick<ChoicesInstance, 'id' | 'name' | 'createdAt' | 'updatedAt'> & { | ||
@@ -373,2 +526,41 @@ options: Array<(Pick<Option, 'transition'> & { | ||
}; | ||
export type ConditionalsInstanceFragment = (Pick<ConditionalsInstance, 'id' | 'name'> & { | ||
rules: Array<(Pick<Rule, 'transition'> & { | ||
conditions: { | ||
all?: Maybe<Array<Maybe<Pick<NestedCondition, 'fact' | 'operator' | 'value'>>>>; | ||
any?: Maybe<Array<Maybe<Pick<NestedCondition, 'fact' | 'operator' | 'value'>>>>; | ||
not?: Maybe<Pick<NestedCondition, 'fact' | 'operator' | 'value'>>; | ||
}; | ||
})>; | ||
}); | ||
export type GetConditionalsInstanceQueryVariables = Exact<{ | ||
id: Scalars['ID']['input']; | ||
}>; | ||
export type GetConditionalsInstanceQuery = { | ||
getConditionalsInstance?: Maybe<ConditionalsInstanceFragment>; | ||
}; | ||
export type ListConditionalsInstancesQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListConditionalsInstancesQuery = { | ||
listConditionalsInstances?: Maybe<Array<Maybe<ConditionalsInstanceFragment>>>; | ||
}; | ||
export type CreateConditionalsInstanceMutationVariables = Exact<{ | ||
input: CreateConditionalsInstanceInput; | ||
}>; | ||
export type CreateConditionalsInstanceMutation = { | ||
createConditionalsInstance?: Maybe<ConditionalsInstanceFragment>; | ||
}; | ||
export type UpdateConditionalsInstanceMutationVariables = Exact<{ | ||
input: UpdateConditionalsInstanceInput; | ||
}>; | ||
export type UpdateConditionalsInstanceMutation = { | ||
updateConditionalsInstance?: Maybe<ConditionalsInstanceFragment>; | ||
}; | ||
export type RemoveConditionalsInstanceMutationVariables = Exact<{ | ||
input: RemoveConditionalsInstanceInput; | ||
}>; | ||
export type RemoveConditionalsInstanceMutation = { | ||
removeConditionalsInstance?: Maybe<ConditionalsInstanceFragment>; | ||
}; | ||
export type EchoInstanceFragment = (Pick<EchoInstance, 'id' | 'name' | 'createdAt' | 'updatedAt'> & { | ||
@@ -439,2 +631,3 @@ messages: Array<Pick<I18nText, 'lang' | 'value'>>; | ||
export declare const ChoicesInstanceFragmentDoc = "\n fragment choicesInstance on ChoicesInstance {\n id\n name\n options {\n messages {\n lang\n value\n }\n transition\n }\n errorMessages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const ConditionalsInstanceFragmentDoc = "\n fragment conditionalsInstance on ConditionalsInstance {\n id\n name\n rules {\n conditions {\n all {\n fact\n operator\n value\n }\n any {\n fact\n operator\n value\n }\n not {\n fact\n operator\n value\n }\n }\n transition\n }\n}\n "; | ||
export declare const EchoInstanceFragmentDoc = "\n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
@@ -447,2 +640,7 @@ export declare const HttpInstanceFragmentDoc = "\n fragment httpInstance on HttpInstance {\n id\n name\n url\n key\n method\n headers\n credentialId\n credentialsHeader\n body\n createdAt\n updatedAt\n}\n "; | ||
export declare const RemoveChoicesInstanceDocument = "\n mutation removeChoicesInstance($input: RemoveChoicesInstanceInput!) {\n removeChoicesInstance(input: $input) {\n ...choicesInstance\n }\n}\n \n fragment choicesInstance on ChoicesInstance {\n id\n name\n options {\n messages {\n lang\n value\n }\n transition\n }\n errorMessages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetConditionalsInstanceDocument = "\n query getConditionalsInstance($id: ID!) {\n getConditionalsInstance(id: $id) {\n ...conditionalsInstance\n }\n}\n \n fragment conditionalsInstance on ConditionalsInstance {\n id\n name\n rules {\n conditions {\n all {\n fact\n operator\n value\n }\n any {\n fact\n operator\n value\n }\n not {\n fact\n operator\n value\n }\n }\n transition\n }\n}\n "; | ||
export declare const ListConditionalsInstancesDocument = "\n query listConditionalsInstances {\n listConditionalsInstances {\n ...conditionalsInstance\n }\n}\n \n fragment conditionalsInstance on ConditionalsInstance {\n id\n name\n rules {\n conditions {\n all {\n fact\n operator\n value\n }\n any {\n fact\n operator\n value\n }\n not {\n fact\n operator\n value\n }\n }\n transition\n }\n}\n "; | ||
export declare const CreateConditionalsInstanceDocument = "\n mutation createConditionalsInstance($input: CreateConditionalsInstanceInput!) {\n createConditionalsInstance(input: $input) {\n ...conditionalsInstance\n }\n}\n \n fragment conditionalsInstance on ConditionalsInstance {\n id\n name\n rules {\n conditions {\n all {\n fact\n operator\n value\n }\n any {\n fact\n operator\n value\n }\n not {\n fact\n operator\n value\n }\n }\n transition\n }\n}\n "; | ||
export declare const UpdateConditionalsInstanceDocument = "\n mutation updateConditionalsInstance($input: UpdateConditionalsInstanceInput!) {\n updateConditionalsInstance(input: $input) {\n ...conditionalsInstance\n }\n}\n \n fragment conditionalsInstance on ConditionalsInstance {\n id\n name\n rules {\n conditions {\n all {\n fact\n operator\n value\n }\n any {\n fact\n operator\n value\n }\n not {\n fact\n operator\n value\n }\n }\n transition\n }\n}\n "; | ||
export declare const RemoveConditionalsInstanceDocument = "\n mutation removeConditionalsInstance($input: RemoveConditionalsInstanceInput!) {\n removeConditionalsInstance(input: $input) {\n ...conditionalsInstance\n }\n}\n \n fragment conditionalsInstance on ConditionalsInstance {\n id\n name\n rules {\n conditions {\n all {\n fact\n operator\n value\n }\n any {\n fact\n operator\n value\n }\n not {\n fact\n operator\n value\n }\n }\n transition\n }\n}\n "; | ||
export declare const GetEchoInstanceDocument = "\n query getEchoInstance($id: ID!) {\n getEchoInstance(id: $id) {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
@@ -465,2 +663,7 @@ export declare const ListEchoInstancesDocument = "\n query listEchoInstances {\n listEchoInstances {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
removeChoicesInstance(variables: RemoveChoicesInstanceMutationVariables, options?: C): Promise<RemoveChoicesInstanceMutation>; | ||
getConditionalsInstance(variables: GetConditionalsInstanceQueryVariables, options?: C): Promise<GetConditionalsInstanceQuery>; | ||
listConditionalsInstances(variables?: ListConditionalsInstancesQueryVariables, options?: C): Promise<ListConditionalsInstancesQuery>; | ||
createConditionalsInstance(variables: CreateConditionalsInstanceMutationVariables, options?: C): Promise<CreateConditionalsInstanceMutation>; | ||
updateConditionalsInstance(variables: UpdateConditionalsInstanceMutationVariables, options?: C): Promise<UpdateConditionalsInstanceMutation>; | ||
removeConditionalsInstance(variables: RemoveConditionalsInstanceMutationVariables, options?: C): Promise<RemoveConditionalsInstanceMutation>; | ||
getEchoInstance(variables: GetEchoInstanceQueryVariables, options?: C): Promise<GetEchoInstanceQuery>; | ||
@@ -467,0 +670,0 @@ listEchoInstances(variables?: ListEchoInstancesQueryVariables, options?: C): Promise<ListEchoInstancesQuery>; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.getSdk = exports.RemoveHttpInstanceDocument = exports.UpdateHttpInstanceDocument = exports.CreateHttpInstanceDocument = exports.ListHttpInstancesDocument = exports.GetHttpInstanceDocument = exports.RemoveEchoInstanceDocument = exports.UpdateEchoInstanceDocument = exports.CreateEchoInstanceDocument = exports.ListEchoInstancesDocument = exports.GetEchoInstanceDocument = exports.RemoveChoicesInstanceDocument = exports.UpdateChoicesInstanceDocument = exports.CreateChoicesInstanceDocument = exports.ListChoicesInstancesDocument = exports.GetChoicesInstanceDocument = exports.HttpInstanceFragmentDoc = exports.EchoInstanceFragmentDoc = exports.ChoicesInstanceFragmentDoc = exports.Typenames = exports.HttpMethod = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.RemoveHttpInstanceDocument = exports.UpdateHttpInstanceDocument = exports.CreateHttpInstanceDocument = exports.ListHttpInstancesDocument = exports.GetHttpInstanceDocument = exports.RemoveEchoInstanceDocument = exports.UpdateEchoInstanceDocument = exports.CreateEchoInstanceDocument = exports.ListEchoInstancesDocument = exports.GetEchoInstanceDocument = exports.RemoveConditionalsInstanceDocument = exports.UpdateConditionalsInstanceDocument = exports.CreateConditionalsInstanceDocument = exports.ListConditionalsInstancesDocument = exports.GetConditionalsInstanceDocument = exports.RemoveChoicesInstanceDocument = exports.UpdateChoicesInstanceDocument = exports.CreateChoicesInstanceDocument = exports.ListChoicesInstancesDocument = exports.GetChoicesInstanceDocument = exports.HttpInstanceFragmentDoc = exports.EchoInstanceFragmentDoc = exports.ConditionalsInstanceFragmentDoc = exports.ChoicesInstanceFragmentDoc = exports.Typenames = exports.Operator = exports.HttpMethod = exports.Can = exports.Asserts = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -11,2 +11,13 @@ (function (AppInstanceStatus) { | ||
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {})); | ||
var Asserts; | ||
(function (Asserts) { | ||
Asserts["Cnpj"] = "Cnpj"; | ||
Asserts["Cpf"] = "Cpf"; | ||
Asserts["CpfCnpj"] = "Cpf_Cnpj"; | ||
Asserts["Email"] = "Email"; | ||
Asserts["Js"] = "Js"; | ||
Asserts["Number"] = "Number"; | ||
Asserts["Regex"] = "Regex"; | ||
Asserts["String"] = "String"; | ||
})(Asserts || (exports.Asserts = Asserts = {})); | ||
var Can; | ||
@@ -27,2 +38,15 @@ (function (Can) { | ||
})(HttpMethod || (exports.HttpMethod = HttpMethod = {})); | ||
var Operator; | ||
(function (Operator) { | ||
Operator["Contains"] = "contains"; | ||
Operator["DoesNotContain"] = "doesNotContain"; | ||
Operator["Equal"] = "equal"; | ||
Operator["GreaterThan"] = "greaterThan"; | ||
Operator["GreaterThanInclusive"] = "greaterThanInclusive"; | ||
Operator["In"] = "in"; | ||
Operator["LessThan"] = "lessThan"; | ||
Operator["LessThanInclusive"] = "lessThanInclusive"; | ||
Operator["NotEqual"] = "notEqual"; | ||
Operator["NotIn"] = "notIn"; | ||
})(Operator || (exports.Operator = Operator = {})); | ||
var Typenames; | ||
@@ -32,2 +56,3 @@ (function (Typenames) { | ||
Typenames["Choices"] = "Choices"; | ||
Typenames["Conditionals"] = "Conditionals"; | ||
Typenames["Echo"] = "Echo"; | ||
@@ -37,2 +62,3 @@ Typenames["GraphqlConnections"] = "GraphqlConnections"; | ||
Typenames["Http"] = "Http"; | ||
Typenames["Prompt"] = "Prompt"; | ||
})(Typenames || (exports.Typenames = Typenames = {})); | ||
@@ -58,2 +84,28 @@ exports.ChoicesInstanceFragmentDoc = ` | ||
`; | ||
exports.ConditionalsInstanceFragmentDoc = ` | ||
fragment conditionalsInstance on ConditionalsInstance { | ||
id | ||
name | ||
rules { | ||
conditions { | ||
all { | ||
fact | ||
operator | ||
value | ||
} | ||
any { | ||
fact | ||
operator | ||
value | ||
} | ||
not { | ||
fact | ||
operator | ||
value | ||
} | ||
} | ||
transition | ||
} | ||
} | ||
`; | ||
exports.EchoInstanceFragmentDoc = ` | ||
@@ -121,2 +173,37 @@ fragment echoInstance on EchoInstance { | ||
${exports.ChoicesInstanceFragmentDoc}`; | ||
exports.GetConditionalsInstanceDocument = ` | ||
query getConditionalsInstance($id: ID!) { | ||
getConditionalsInstance(id: $id) { | ||
...conditionalsInstance | ||
} | ||
} | ||
${exports.ConditionalsInstanceFragmentDoc}`; | ||
exports.ListConditionalsInstancesDocument = ` | ||
query listConditionalsInstances { | ||
listConditionalsInstances { | ||
...conditionalsInstance | ||
} | ||
} | ||
${exports.ConditionalsInstanceFragmentDoc}`; | ||
exports.CreateConditionalsInstanceDocument = ` | ||
mutation createConditionalsInstance($input: CreateConditionalsInstanceInput!) { | ||
createConditionalsInstance(input: $input) { | ||
...conditionalsInstance | ||
} | ||
} | ||
${exports.ConditionalsInstanceFragmentDoc}`; | ||
exports.UpdateConditionalsInstanceDocument = ` | ||
mutation updateConditionalsInstance($input: UpdateConditionalsInstanceInput!) { | ||
updateConditionalsInstance(input: $input) { | ||
...conditionalsInstance | ||
} | ||
} | ||
${exports.ConditionalsInstanceFragmentDoc}`; | ||
exports.RemoveConditionalsInstanceDocument = ` | ||
mutation removeConditionalsInstance($input: RemoveConditionalsInstanceInput!) { | ||
removeConditionalsInstance(input: $input) { | ||
...conditionalsInstance | ||
} | ||
} | ||
${exports.ConditionalsInstanceFragmentDoc}`; | ||
exports.GetEchoInstanceDocument = ` | ||
@@ -209,2 +296,17 @@ query getEchoInstance($id: ID!) { | ||
}, | ||
getConditionalsInstance(variables, options) { | ||
return requester(exports.GetConditionalsInstanceDocument, variables, options); | ||
}, | ||
listConditionalsInstances(variables, options) { | ||
return requester(exports.ListConditionalsInstancesDocument, variables, options); | ||
}, | ||
createConditionalsInstance(variables, options) { | ||
return requester(exports.CreateConditionalsInstanceDocument, variables, options); | ||
}, | ||
updateConditionalsInstance(variables, options) { | ||
return requester(exports.UpdateConditionalsInstanceDocument, variables, options); | ||
}, | ||
removeConditionalsInstance(variables, options) { | ||
return requester(exports.RemoveConditionalsInstanceDocument, variables, options); | ||
}, | ||
getEchoInstance(variables, options) { | ||
@@ -211,0 +313,0 @@ return requester(exports.GetEchoInstanceDocument, variables, options); |
@@ -24,2 +24,17 @@ export * from './sdks/utilities'; | ||
}>, options?: unknown): Promise<import("./sdks/utilities").RemoveChoicesInstanceMutation>; | ||
getConditionalsInstance(variables: import("./sdks/utilities").Exact<{ | ||
id: string; | ||
}>, options?: unknown): Promise<import("./sdks/utilities").GetConditionalsInstanceQuery>; | ||
listConditionalsInstances(variables?: import("./sdks/utilities").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/utilities").ListConditionalsInstancesQuery>; | ||
createConditionalsInstance(variables: import("./sdks/utilities").Exact<{ | ||
input: import("./sdks/utilities").CreateConditionalsInstanceInput; | ||
}>, options?: unknown): Promise<import("./sdks/utilities").CreateConditionalsInstanceMutation>; | ||
updateConditionalsInstance(variables: import("./sdks/utilities").Exact<{ | ||
input: import("./sdks/utilities").UpdateConditionalsInstanceInput; | ||
}>, options?: unknown): Promise<import("./sdks/utilities").UpdateConditionalsInstanceMutation>; | ||
removeConditionalsInstance(variables: import("./sdks/utilities").Exact<{ | ||
input: import("./sdks/utilities").RemoveConditionalsInstanceInput; | ||
}>, options?: unknown): Promise<import("./sdks/utilities").RemoveConditionalsInstanceMutation>; | ||
getEchoInstance(variables: import("./sdks/utilities").Exact<{ | ||
@@ -26,0 +41,0 @@ id: string; |
529490
64
11785