@droz-js/sdk 0.3.20 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.3.20",
4
+ "version": "0.4.0",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -110,12 +110,14 @@ export type CreateTicketInput = {
110
110
  subject: Scalars['String']['input'];
111
111
  };
112
112
  export type CreateTicketMessageForStorageInput = {
113
+ channelId: Scalars['ID']['input'];
113
114
  from: TicketMessageRecipient;
114
115
  storageId: Scalars['ID']['input'];
115
116
  ticketId: Scalars['ID']['input'];
116
117
  to: TicketMessageRecipient;
117
118
  };
118
119
  export type CreateTicketMessageInput = {
120
+ channelId: Scalars['ID']['input'];
119
121
  content: Scalars['String']['input'];
120
122
  contentType: Scalars['String']['input'];
121
123
  from: TicketMessageRecipient;
@@ -218,8 +220,8 @@ export type QueryGetTicketArgs = {
218
220
  id: Scalars['ID']['input'];
219
221
  };
220
222
  export type QueryListTicketMessagesArgs = {
223
+ channelId?: InputMaybe<Scalars['ID']['input']>;
221
224
  next?: InputMaybe<Scalars['Base64']['input']>;
222
- sources?: InputMaybe<Array<Scalars['String']['input']>>;
223
225
  ticketId: Scalars['ID']['input'];
224
226
  };
225
227
  export type QueryListTicketsArgs = {
@@ -279,6 +281,7 @@ export type Ticket = {
279
281
  updatedAt: Scalars['DateTime']['output'];
280
282
  };
281
283
  export type TicketMessage = {
284
+ channelId: Scalars['ID']['output'];
282
285
  content: Scalars['String']['output'];
283
286
  contentType: Scalars['String']['output'];
284
287
  createdAt: Scalars['DateTime']['output'];
@@ -130,7 +130,9 @@ export type App = {
130
130
  type: AppType;
131
131
  };
132
132
  export type AppChannel = {
133
- name: Scalars['String']['output'];
133
+ id: Scalars['ID']['output'];
134
+ main?: Maybe<Scalars['Boolean']['output']>;
135
+ readonly?: Maybe<Scalars['Boolean']['output']>;
134
136
  sources: Array<Scalars['String']['output']>;
135
137
  };
136
138
  export type AppInstance = {
@@ -803,7 +805,7 @@ export type RemoveRoleFromAgentMutation = {
803
805
  removeRoleFromAgent?: Maybe<AgentFragment>;
804
806
  };
805
807
  export type AppFragment = (Pick<App, 'id' | 'type' | 'name' | 'description'> & {
806
- channels?: Maybe<Array<Pick<AppChannel, 'name' | 'sources'>>>;
808
+ channels?: Maybe<Array<Pick<AppChannel, 'id' | 'sources' | 'main' | 'readonly'>>>;
807
809
  });
808
810
  export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'name' | 'transitions' | 'createdAt' | 'updatedAt'>;
809
811
  export type AppWithInstancesFragment = ({
@@ -1132,9 +1134,9 @@ export type CreatePresignedUploadUrlMutation = {
1132
1134
  };
1133
1135
  export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
1134
1136
  export declare const ApiKeyFragmentDoc = "\n fragment apiKey on ApiKeyAgent {\n token\n user {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
1135
- export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n channels {\n name\n sources\n }\n}\n ";
1137
+ export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n channels {\n id\n sources\n main\n readonly\n }\n}\n ";
1136
1138
  export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
1137
- export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n channels {\n name\n sources\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
1139
+ export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n channels {\n id\n sources\n main\n readonly\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
1138
1140
  export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
1139
1141
  export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n email\n phone\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
1140
1142
  export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
@@ -1157,10 +1159,10 @@ export declare const UpdateAgentDocument = "\n mutation updateAgent($input: U
1157
1159
  export declare const RemoveAgentDocument = "\n mutation removeAgent($input: RemoveAgentInput!) {\n removeAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
1158
1160
  export declare const AddRoleToAgentDocument = "\n mutation addRoleToAgent($input: AddRoleToAgentInput!) {\n addRoleToAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
1159
1161
  export declare const RemoveRoleFromAgentDocument = "\n mutation removeRoleFromAgent($input: RemoveRoleFromAgentInput!) {\n removeRoleFromAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
1160
- export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInstances: Boolean = false) {\n getApp(appId: $appId) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n channels {\n name\n sources\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
1161
- export declare const ListAppsDocument = "\n query listApps($type: AppType, $withInstances: Boolean = false) {\n listApps(type: $type) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n channels {\n name\n sources\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
1162
- export declare const GetAppInstanceDocument = "\n query getAppInstance($drn: ID!) {\n appInstance: getAppInstance(drn: $drn) {\n ...appInstance\n }\n app: getApp(appId: $drn) {\n ...app\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n channels {\n name\n sources\n }\n}\n ";
1163
- export declare const ListAppInstancesDocument = "\n query listAppInstances($appId: ID, $appType: AppType, $withApp: Boolean = false) {\n listAppInstances(appId: $appId, appType: $appType) {\n ...appInstance\n app @include(if: $withApp) {\n ...app\n }\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n channels {\n name\n sources\n }\n}\n ";
1162
+ export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInstances: Boolean = false) {\n getApp(appId: $appId) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n channels {\n id\n sources\n main\n readonly\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
1163
+ export declare const ListAppsDocument = "\n query listApps($type: AppType, $withInstances: Boolean = false) {\n listApps(type: $type) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n channels {\n id\n sources\n main\n readonly\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
1164
+ export declare const GetAppInstanceDocument = "\n query getAppInstance($drn: ID!) {\n appInstance: getAppInstance(drn: $drn) {\n ...appInstance\n }\n app: getApp(appId: $drn) {\n ...app\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n channels {\n id\n sources\n main\n readonly\n }\n}\n ";
1165
+ export declare const ListAppInstancesDocument = "\n query listAppInstances($appId: ID, $appType: AppType, $withApp: Boolean = false) {\n listAppInstances(appId: $appId, appType: $appType) {\n ...appInstance\n app @include(if: $withApp) {\n ...app\n }\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n channels {\n id\n sources\n main\n readonly\n }\n}\n ";
1164
1166
  export declare const CountAppInstancesDocument = "\n query countAppInstances {\n countAppInstances\n}\n ";
1165
1167
  export declare const RegisterAppInstanceDocument = "\n mutation registerAppInstance($input: RegisterAppInstanceInput!) {\n registerAppInstance(input: $input) {\n ...appInstance\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
1166
1168
  export declare const UnregisterAppInstanceDocument = "\n mutation unregisterAppInstance($input: UnregisterAppInstanceInput!) {\n unregisterAppInstance(input: $input) {\n ...appInstance\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
@@ -90,8 +90,10 @@ exports.AppFragmentDoc = `
90
90
  name
91
91
  description
92
92
  channels {
93
- name
93
+ id
94
94
  sources
95
+ main
96
+ readonly
95
97
  }
96
98
  }
97
99
  `;