generated-types.ts 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130
  1. /* tslint:disable */
  2. // This file was automatically generated and should not be edited.
  3. // ====================================================
  4. // GraphQL query operation: GetAdministrators
  5. // ====================================================
  6. export interface GetAdministrators_administrators_items_user_roles {
  7. __typename: "Role";
  8. code: string;
  9. description: string;
  10. permissions: Permission[];
  11. }
  12. export interface GetAdministrators_administrators_items_user {
  13. __typename: "User";
  14. id: string;
  15. identifier: string;
  16. lastLogin: string | null;
  17. roles: GetAdministrators_administrators_items_user_roles[];
  18. }
  19. export interface GetAdministrators_administrators_items {
  20. __typename: "Administrator";
  21. id: string;
  22. firstName: string;
  23. lastName: string;
  24. emailAddress: string;
  25. user: GetAdministrators_administrators_items_user;
  26. }
  27. export interface GetAdministrators_administrators {
  28. __typename: "AdministratorList";
  29. items: GetAdministrators_administrators_items[];
  30. totalItems: number;
  31. }
  32. export interface GetAdministrators {
  33. administrators: GetAdministrators_administrators;
  34. }
  35. export interface GetAdministratorsVariables {
  36. options?: AdministratorListOptions | null;
  37. }
  38. /* tslint:disable */
  39. // This file was automatically generated and should not be edited.
  40. // ====================================================
  41. // GraphQL mutation operation: CreateAdministrator
  42. // ====================================================
  43. export interface CreateAdministrator_createAdministrator_user_roles {
  44. __typename: "Role";
  45. code: string;
  46. description: string;
  47. permissions: Permission[];
  48. }
  49. export interface CreateAdministrator_createAdministrator_user {
  50. __typename: "User";
  51. id: string;
  52. identifier: string;
  53. lastLogin: string | null;
  54. roles: CreateAdministrator_createAdministrator_user_roles[];
  55. }
  56. export interface CreateAdministrator_createAdministrator {
  57. __typename: "Administrator";
  58. id: string;
  59. firstName: string;
  60. lastName: string;
  61. emailAddress: string;
  62. user: CreateAdministrator_createAdministrator_user;
  63. }
  64. export interface CreateAdministrator {
  65. /**
  66. * Create a new Administrator
  67. */
  68. createAdministrator: CreateAdministrator_createAdministrator;
  69. }
  70. export interface CreateAdministratorVariables {
  71. input: CreateAdministratorInput;
  72. }
  73. /* tslint:disable */
  74. // This file was automatically generated and should not be edited.
  75. // ====================================================
  76. // GraphQL query operation: GetRoles
  77. // ====================================================
  78. export interface GetRoles_roles_items_channels {
  79. __typename: "Channel";
  80. id: string;
  81. code: string;
  82. token: string;
  83. }
  84. export interface GetRoles_roles_items {
  85. __typename: "Role";
  86. id: string;
  87. code: string;
  88. description: string;
  89. permissions: Permission[];
  90. channels: GetRoles_roles_items_channels[];
  91. }
  92. export interface GetRoles_roles {
  93. __typename: "RoleList";
  94. items: GetRoles_roles_items[];
  95. totalItems: number;
  96. }
  97. export interface GetRoles {
  98. roles: GetRoles_roles;
  99. }
  100. export interface GetRolesVariables {
  101. options?: RoleListOptions | null;
  102. }
  103. /* tslint:disable */
  104. // This file was automatically generated and should not be edited.
  105. // ====================================================
  106. // GraphQL query operation: GetRole
  107. // ====================================================
  108. export interface GetRole_role_channels {
  109. __typename: "Channel";
  110. id: string;
  111. code: string;
  112. token: string;
  113. }
  114. export interface GetRole_role {
  115. __typename: "Role";
  116. id: string;
  117. code: string;
  118. description: string;
  119. permissions: Permission[];
  120. channels: GetRole_role_channels[];
  121. }
  122. export interface GetRole {
  123. role: GetRole_role | null;
  124. }
  125. export interface GetRoleVariables {
  126. id: string;
  127. }
  128. /* tslint:disable */
  129. // This file was automatically generated and should not be edited.
  130. // ====================================================
  131. // GraphQL mutation operation: CreateRole
  132. // ====================================================
  133. export interface CreateRole_createRole_channels {
  134. __typename: "Channel";
  135. id: string;
  136. code: string;
  137. token: string;
  138. }
  139. export interface CreateRole_createRole {
  140. __typename: "Role";
  141. id: string;
  142. code: string;
  143. description: string;
  144. permissions: Permission[];
  145. channels: CreateRole_createRole_channels[];
  146. }
  147. export interface CreateRole {
  148. /**
  149. * Create a new Role
  150. */
  151. createRole: CreateRole_createRole;
  152. }
  153. export interface CreateRoleVariables {
  154. input: CreateRoleInput;
  155. }
  156. /* tslint:disable */
  157. // This file was automatically generated and should not be edited.
  158. // ====================================================
  159. // GraphQL mutation operation: UpdateRole
  160. // ====================================================
  161. export interface UpdateRole_updateRole_channels {
  162. __typename: "Channel";
  163. id: string;
  164. code: string;
  165. token: string;
  166. }
  167. export interface UpdateRole_updateRole {
  168. __typename: "Role";
  169. id: string;
  170. code: string;
  171. description: string;
  172. permissions: Permission[];
  173. channels: UpdateRole_updateRole_channels[];
  174. }
  175. export interface UpdateRole {
  176. /**
  177. * Update an existing new Role
  178. */
  179. updateRole: UpdateRole_updateRole;
  180. }
  181. export interface UpdateRoleVariables {
  182. input: UpdateRoleInput;
  183. }
  184. /* tslint:disable */
  185. // This file was automatically generated and should not be edited.
  186. // ====================================================
  187. // GraphQL mutation operation: AssignRoleToAdministrator
  188. // ====================================================
  189. export interface AssignRoleToAdministrator_assignRoleToAdministrator_user_roles {
  190. __typename: "Role";
  191. code: string;
  192. description: string;
  193. permissions: Permission[];
  194. }
  195. export interface AssignRoleToAdministrator_assignRoleToAdministrator_user {
  196. __typename: "User";
  197. id: string;
  198. identifier: string;
  199. lastLogin: string | null;
  200. roles: AssignRoleToAdministrator_assignRoleToAdministrator_user_roles[];
  201. }
  202. export interface AssignRoleToAdministrator_assignRoleToAdministrator {
  203. __typename: "Administrator";
  204. id: string;
  205. firstName: string;
  206. lastName: string;
  207. emailAddress: string;
  208. user: AssignRoleToAdministrator_assignRoleToAdministrator_user;
  209. }
  210. export interface AssignRoleToAdministrator {
  211. /**
  212. * Assign a Role to an Administrator
  213. */
  214. assignRoleToAdministrator: AssignRoleToAdministrator_assignRoleToAdministrator;
  215. }
  216. export interface AssignRoleToAdministratorVariables {
  217. administratorId: string;
  218. roleId: string;
  219. }
  220. /* tslint:disable */
  221. // This file was automatically generated and should not be edited.
  222. // ====================================================
  223. // GraphQL mutation operation: AttemptLogin
  224. // ====================================================
  225. export interface AttemptLogin_login_user {
  226. __typename: "CurrentUser";
  227. id: string;
  228. identifier: string;
  229. channelTokens: string[];
  230. roles: string[];
  231. }
  232. export interface AttemptLogin_login {
  233. __typename: "LoginResult";
  234. user: AttemptLogin_login_user;
  235. authToken: string;
  236. }
  237. export interface AttemptLogin {
  238. login: AttemptLogin_login;
  239. }
  240. export interface AttemptLoginVariables {
  241. username: string;
  242. password: string;
  243. }
  244. /* tslint:disable */
  245. // This file was automatically generated and should not be edited.
  246. // ====================================================
  247. // GraphQL query operation: GetCurrentUser
  248. // ====================================================
  249. export interface GetCurrentUser_me {
  250. __typename: "CurrentUser";
  251. id: string;
  252. identifier: string;
  253. channelTokens: string[];
  254. roles: string[];
  255. }
  256. export interface GetCurrentUser {
  257. me: GetCurrentUser_me | null;
  258. }
  259. /* tslint:disable */
  260. // This file was automatically generated and should not be edited.
  261. // ====================================================
  262. // GraphQL mutation operation: CreateFacet
  263. // ====================================================
  264. export interface CreateFacet_createFacet_translations {
  265. __typename: "FacetTranslation";
  266. id: string;
  267. languageCode: LanguageCode;
  268. name: string;
  269. }
  270. export interface CreateFacet_createFacet_values_translations {
  271. __typename: "FacetValueTranslation";
  272. id: string;
  273. languageCode: LanguageCode;
  274. name: string;
  275. }
  276. export interface CreateFacet_createFacet_values {
  277. __typename: "FacetValue";
  278. id: string;
  279. languageCode: LanguageCode | null;
  280. code: string;
  281. name: string;
  282. translations: CreateFacet_createFacet_values_translations[];
  283. }
  284. export interface CreateFacet_createFacet {
  285. __typename: "Facet";
  286. id: string;
  287. languageCode: LanguageCode;
  288. code: string;
  289. name: string;
  290. translations: CreateFacet_createFacet_translations[];
  291. values: CreateFacet_createFacet_values[];
  292. }
  293. export interface CreateFacet {
  294. /**
  295. * Create a new Facet
  296. */
  297. createFacet: CreateFacet_createFacet;
  298. }
  299. export interface CreateFacetVariables {
  300. input: CreateFacetInput;
  301. }
  302. /* tslint:disable */
  303. // This file was automatically generated and should not be edited.
  304. // ====================================================
  305. // GraphQL mutation operation: UpdateFacet
  306. // ====================================================
  307. export interface UpdateFacet_updateFacet_translations {
  308. __typename: "FacetTranslation";
  309. id: string;
  310. languageCode: LanguageCode;
  311. name: string;
  312. }
  313. export interface UpdateFacet_updateFacet_values_translations {
  314. __typename: "FacetValueTranslation";
  315. id: string;
  316. languageCode: LanguageCode;
  317. name: string;
  318. }
  319. export interface UpdateFacet_updateFacet_values {
  320. __typename: "FacetValue";
  321. id: string;
  322. languageCode: LanguageCode | null;
  323. code: string;
  324. name: string;
  325. translations: UpdateFacet_updateFacet_values_translations[];
  326. }
  327. export interface UpdateFacet_updateFacet {
  328. __typename: "Facet";
  329. id: string;
  330. languageCode: LanguageCode;
  331. code: string;
  332. name: string;
  333. translations: UpdateFacet_updateFacet_translations[];
  334. values: UpdateFacet_updateFacet_values[];
  335. }
  336. export interface UpdateFacet {
  337. /**
  338. * Update an existing Facet
  339. */
  340. updateFacet: UpdateFacet_updateFacet;
  341. }
  342. export interface UpdateFacetVariables {
  343. input: UpdateFacetInput;
  344. }
  345. /* tslint:disable */
  346. // This file was automatically generated and should not be edited.
  347. // ====================================================
  348. // GraphQL mutation operation: CreateFacetValues
  349. // ====================================================
  350. export interface CreateFacetValues_createFacetValues_translations {
  351. __typename: "FacetValueTranslation";
  352. id: string;
  353. languageCode: LanguageCode;
  354. name: string;
  355. }
  356. export interface CreateFacetValues_createFacetValues {
  357. __typename: "FacetValue";
  358. id: string;
  359. languageCode: LanguageCode | null;
  360. code: string;
  361. name: string;
  362. translations: CreateFacetValues_createFacetValues_translations[];
  363. }
  364. export interface CreateFacetValues {
  365. /**
  366. * Create one or more FacetValues
  367. */
  368. createFacetValues: CreateFacetValues_createFacetValues[];
  369. }
  370. export interface CreateFacetValuesVariables {
  371. input: CreateFacetValueInput[];
  372. }
  373. /* tslint:disable */
  374. // This file was automatically generated and should not be edited.
  375. // ====================================================
  376. // GraphQL mutation operation: UpdateFacetValues
  377. // ====================================================
  378. export interface UpdateFacetValues_updateFacetValues_translations {
  379. __typename: "FacetValueTranslation";
  380. id: string;
  381. languageCode: LanguageCode;
  382. name: string;
  383. }
  384. export interface UpdateFacetValues_updateFacetValues {
  385. __typename: "FacetValue";
  386. id: string;
  387. languageCode: LanguageCode | null;
  388. code: string;
  389. name: string;
  390. translations: UpdateFacetValues_updateFacetValues_translations[];
  391. }
  392. export interface UpdateFacetValues {
  393. /**
  394. * Update one or more FacetValues
  395. */
  396. updateFacetValues: UpdateFacetValues_updateFacetValues[];
  397. }
  398. export interface UpdateFacetValuesVariables {
  399. input: UpdateFacetValueInput[];
  400. }
  401. /* tslint:disable */
  402. // This file was automatically generated and should not be edited.
  403. // ====================================================
  404. // GraphQL query operation: GetFacetList
  405. // ====================================================
  406. export interface GetFacetList_facets_items_translations {
  407. __typename: "FacetTranslation";
  408. id: string;
  409. languageCode: LanguageCode;
  410. name: string;
  411. }
  412. export interface GetFacetList_facets_items_values_translations {
  413. __typename: "FacetValueTranslation";
  414. id: string;
  415. languageCode: LanguageCode;
  416. name: string;
  417. }
  418. export interface GetFacetList_facets_items_values {
  419. __typename: "FacetValue";
  420. id: string;
  421. languageCode: LanguageCode | null;
  422. code: string;
  423. name: string;
  424. translations: GetFacetList_facets_items_values_translations[];
  425. }
  426. export interface GetFacetList_facets_items {
  427. __typename: "Facet";
  428. id: string;
  429. languageCode: LanguageCode;
  430. code: string;
  431. name: string;
  432. translations: GetFacetList_facets_items_translations[];
  433. values: GetFacetList_facets_items_values[];
  434. }
  435. export interface GetFacetList_facets {
  436. __typename: "FacetList";
  437. items: GetFacetList_facets_items[];
  438. totalItems: number;
  439. }
  440. export interface GetFacetList {
  441. facets: GetFacetList_facets;
  442. }
  443. export interface GetFacetListVariables {
  444. options?: FacetListOptions | null;
  445. languageCode?: LanguageCode | null;
  446. }
  447. /* tslint:disable */
  448. // This file was automatically generated and should not be edited.
  449. // ====================================================
  450. // GraphQL query operation: GetFacetWithValues
  451. // ====================================================
  452. export interface GetFacetWithValues_facet_translations {
  453. __typename: "FacetTranslation";
  454. id: string;
  455. languageCode: LanguageCode;
  456. name: string;
  457. }
  458. export interface GetFacetWithValues_facet_values_translations {
  459. __typename: "FacetValueTranslation";
  460. id: string;
  461. languageCode: LanguageCode;
  462. name: string;
  463. }
  464. export interface GetFacetWithValues_facet_values {
  465. __typename: "FacetValue";
  466. id: string;
  467. languageCode: LanguageCode | null;
  468. code: string;
  469. name: string;
  470. translations: GetFacetWithValues_facet_values_translations[];
  471. }
  472. export interface GetFacetWithValues_facet {
  473. __typename: "Facet";
  474. id: string;
  475. languageCode: LanguageCode;
  476. code: string;
  477. name: string;
  478. translations: GetFacetWithValues_facet_translations[];
  479. values: GetFacetWithValues_facet_values[];
  480. }
  481. export interface GetFacetWithValues {
  482. facet: GetFacetWithValues_facet | null;
  483. }
  484. export interface GetFacetWithValuesVariables {
  485. id: string;
  486. languageCode?: LanguageCode | null;
  487. }
  488. /* tslint:disable */
  489. // This file was automatically generated and should not be edited.
  490. // ====================================================
  491. // GraphQL mutation operation: RequestStarted
  492. // ====================================================
  493. export interface RequestStarted {
  494. requestStarted: number;
  495. }
  496. /* tslint:disable */
  497. // This file was automatically generated and should not be edited.
  498. // ====================================================
  499. // GraphQL mutation operation: RequestCompleted
  500. // ====================================================
  501. export interface RequestCompleted {
  502. requestCompleted: number;
  503. }
  504. /* tslint:disable */
  505. // This file was automatically generated and should not be edited.
  506. // ====================================================
  507. // GraphQL mutation operation: SetAsLoggedIn
  508. // ====================================================
  509. export interface SetAsLoggedIn_setAsLoggedIn {
  510. __typename: "UserStatus";
  511. username: string;
  512. isLoggedIn: boolean;
  513. loginTime: string;
  514. }
  515. export interface SetAsLoggedIn {
  516. setAsLoggedIn: SetAsLoggedIn_setAsLoggedIn | null;
  517. }
  518. export interface SetAsLoggedInVariables {
  519. username: string;
  520. loginTime: string;
  521. }
  522. /* tslint:disable */
  523. // This file was automatically generated and should not be edited.
  524. // ====================================================
  525. // GraphQL mutation operation: SetAsLoggedOut
  526. // ====================================================
  527. export interface SetAsLoggedOut_setAsLoggedOut {
  528. __typename: "UserStatus";
  529. username: string;
  530. isLoggedIn: boolean;
  531. loginTime: string;
  532. }
  533. export interface SetAsLoggedOut {
  534. setAsLoggedOut: SetAsLoggedOut_setAsLoggedOut | null;
  535. }
  536. /* tslint:disable */
  537. // This file was automatically generated and should not be edited.
  538. // ====================================================
  539. // GraphQL mutation operation: SetUiLanguage
  540. // ====================================================
  541. export interface SetUiLanguage {
  542. setUiLanguage: LanguageCode | null;
  543. }
  544. export interface SetUiLanguageVariables {
  545. languageCode: LanguageCode;
  546. }
  547. /* tslint:disable */
  548. // This file was automatically generated and should not be edited.
  549. // ====================================================
  550. // GraphQL query operation: GetNetworkStatus
  551. // ====================================================
  552. export interface GetNetworkStatus_networkStatus {
  553. __typename: "NetworkStatus";
  554. inFlightRequests: number;
  555. }
  556. export interface GetNetworkStatus {
  557. networkStatus: GetNetworkStatus_networkStatus;
  558. }
  559. /* tslint:disable */
  560. // This file was automatically generated and should not be edited.
  561. // ====================================================
  562. // GraphQL query operation: GetUserStatus
  563. // ====================================================
  564. export interface GetUserStatus_userStatus {
  565. __typename: "UserStatus";
  566. username: string;
  567. isLoggedIn: boolean;
  568. loginTime: string;
  569. }
  570. export interface GetUserStatus {
  571. userStatus: GetUserStatus_userStatus;
  572. }
  573. /* tslint:disable */
  574. // This file was automatically generated and should not be edited.
  575. // ====================================================
  576. // GraphQL query operation: GetUiState
  577. // ====================================================
  578. export interface GetUiState_uiState {
  579. __typename: "UiState";
  580. language: LanguageCode;
  581. }
  582. export interface GetUiState {
  583. uiState: GetUiState_uiState;
  584. }
  585. /* tslint:disable */
  586. // This file was automatically generated and should not be edited.
  587. // ====================================================
  588. // GraphQL mutation operation: UpdateProduct
  589. // ====================================================
  590. export interface UpdateProduct_updateProduct_translations {
  591. __typename: "ProductTranslation";
  592. languageCode: LanguageCode;
  593. name: string;
  594. slug: string;
  595. description: string;
  596. }
  597. export interface UpdateProduct_updateProduct_optionGroups {
  598. __typename: "ProductOptionGroup";
  599. id: string;
  600. languageCode: LanguageCode;
  601. code: string;
  602. name: string;
  603. }
  604. export interface UpdateProduct_updateProduct_variants_options {
  605. __typename: "ProductOption";
  606. id: string;
  607. code: string | null;
  608. languageCode: LanguageCode | null;
  609. name: string | null;
  610. }
  611. export interface UpdateProduct_updateProduct_variants_facetValues {
  612. __typename: "FacetValue";
  613. id: string;
  614. code: string;
  615. name: string;
  616. }
  617. export interface UpdateProduct_updateProduct_variants_translations {
  618. __typename: "ProductVariantTranslation";
  619. id: string;
  620. languageCode: LanguageCode;
  621. name: string;
  622. }
  623. export interface UpdateProduct_updateProduct_variants {
  624. __typename: "ProductVariant";
  625. id: string;
  626. languageCode: LanguageCode;
  627. name: string;
  628. price: number;
  629. sku: string;
  630. image: string | null;
  631. options: UpdateProduct_updateProduct_variants_options[];
  632. facetValues: UpdateProduct_updateProduct_variants_facetValues[];
  633. translations: UpdateProduct_updateProduct_variants_translations[];
  634. }
  635. export interface UpdateProduct_updateProduct {
  636. __typename: "Product";
  637. id: string;
  638. languageCode: LanguageCode;
  639. name: string;
  640. slug: string;
  641. image: string;
  642. description: string;
  643. translations: UpdateProduct_updateProduct_translations[];
  644. optionGroups: UpdateProduct_updateProduct_optionGroups[];
  645. variants: UpdateProduct_updateProduct_variants[];
  646. }
  647. export interface UpdateProduct {
  648. /**
  649. * Update an existing Product
  650. */
  651. updateProduct: UpdateProduct_updateProduct;
  652. }
  653. export interface UpdateProductVariables {
  654. input: UpdateProductInput;
  655. }
  656. /* tslint:disable */
  657. // This file was automatically generated and should not be edited.
  658. // ====================================================
  659. // GraphQL mutation operation: CreateProduct
  660. // ====================================================
  661. export interface CreateProduct_createProduct_translations {
  662. __typename: "ProductTranslation";
  663. languageCode: LanguageCode;
  664. name: string;
  665. slug: string;
  666. description: string;
  667. }
  668. export interface CreateProduct_createProduct_optionGroups {
  669. __typename: "ProductOptionGroup";
  670. id: string;
  671. languageCode: LanguageCode;
  672. code: string;
  673. name: string;
  674. }
  675. export interface CreateProduct_createProduct_variants_options {
  676. __typename: "ProductOption";
  677. id: string;
  678. code: string | null;
  679. languageCode: LanguageCode | null;
  680. name: string | null;
  681. }
  682. export interface CreateProduct_createProduct_variants_facetValues {
  683. __typename: "FacetValue";
  684. id: string;
  685. code: string;
  686. name: string;
  687. }
  688. export interface CreateProduct_createProduct_variants_translations {
  689. __typename: "ProductVariantTranslation";
  690. id: string;
  691. languageCode: LanguageCode;
  692. name: string;
  693. }
  694. export interface CreateProduct_createProduct_variants {
  695. __typename: "ProductVariant";
  696. id: string;
  697. languageCode: LanguageCode;
  698. name: string;
  699. price: number;
  700. sku: string;
  701. image: string | null;
  702. options: CreateProduct_createProduct_variants_options[];
  703. facetValues: CreateProduct_createProduct_variants_facetValues[];
  704. translations: CreateProduct_createProduct_variants_translations[];
  705. }
  706. export interface CreateProduct_createProduct {
  707. __typename: "Product";
  708. id: string;
  709. languageCode: LanguageCode;
  710. name: string;
  711. slug: string;
  712. image: string;
  713. description: string;
  714. translations: CreateProduct_createProduct_translations[];
  715. optionGroups: CreateProduct_createProduct_optionGroups[];
  716. variants: CreateProduct_createProduct_variants[];
  717. }
  718. export interface CreateProduct {
  719. /**
  720. * Create a new Product
  721. */
  722. createProduct: CreateProduct_createProduct;
  723. }
  724. export interface CreateProductVariables {
  725. input: CreateProductInput;
  726. }
  727. /* tslint:disable */
  728. // This file was automatically generated and should not be edited.
  729. // ====================================================
  730. // GraphQL mutation operation: GenerateProductVariants
  731. // ====================================================
  732. export interface GenerateProductVariants_generateVariantsForProduct_translations {
  733. __typename: "ProductTranslation";
  734. languageCode: LanguageCode;
  735. name: string;
  736. slug: string;
  737. description: string;
  738. }
  739. export interface GenerateProductVariants_generateVariantsForProduct_optionGroups {
  740. __typename: "ProductOptionGroup";
  741. id: string;
  742. languageCode: LanguageCode;
  743. code: string;
  744. name: string;
  745. }
  746. export interface GenerateProductVariants_generateVariantsForProduct_variants_options {
  747. __typename: "ProductOption";
  748. id: string;
  749. code: string | null;
  750. languageCode: LanguageCode | null;
  751. name: string | null;
  752. }
  753. export interface GenerateProductVariants_generateVariantsForProduct_variants_facetValues {
  754. __typename: "FacetValue";
  755. id: string;
  756. code: string;
  757. name: string;
  758. }
  759. export interface GenerateProductVariants_generateVariantsForProduct_variants_translations {
  760. __typename: "ProductVariantTranslation";
  761. id: string;
  762. languageCode: LanguageCode;
  763. name: string;
  764. }
  765. export interface GenerateProductVariants_generateVariantsForProduct_variants {
  766. __typename: "ProductVariant";
  767. id: string;
  768. languageCode: LanguageCode;
  769. name: string;
  770. price: number;
  771. sku: string;
  772. image: string | null;
  773. options: GenerateProductVariants_generateVariantsForProduct_variants_options[];
  774. facetValues: GenerateProductVariants_generateVariantsForProduct_variants_facetValues[];
  775. translations: GenerateProductVariants_generateVariantsForProduct_variants_translations[];
  776. }
  777. export interface GenerateProductVariants_generateVariantsForProduct {
  778. __typename: "Product";
  779. id: string;
  780. languageCode: LanguageCode;
  781. name: string;
  782. slug: string;
  783. image: string;
  784. description: string;
  785. translations: GenerateProductVariants_generateVariantsForProduct_translations[];
  786. optionGroups: GenerateProductVariants_generateVariantsForProduct_optionGroups[];
  787. variants: GenerateProductVariants_generateVariantsForProduct_variants[];
  788. }
  789. export interface GenerateProductVariants {
  790. /**
  791. * Create a set of ProductVariants based on the OptionGroups assigned to the given Product
  792. */
  793. generateVariantsForProduct: GenerateProductVariants_generateVariantsForProduct;
  794. }
  795. export interface GenerateProductVariantsVariables {
  796. productId: string;
  797. defaultPrice?: number | null;
  798. defaultSku?: string | null;
  799. }
  800. /* tslint:disable */
  801. // This file was automatically generated and should not be edited.
  802. // ====================================================
  803. // GraphQL mutation operation: UpdateProductVariants
  804. // ====================================================
  805. export interface UpdateProductVariants_updateProductVariants_options {
  806. __typename: "ProductOption";
  807. id: string;
  808. code: string | null;
  809. languageCode: LanguageCode | null;
  810. name: string | null;
  811. }
  812. export interface UpdateProductVariants_updateProductVariants_facetValues {
  813. __typename: "FacetValue";
  814. id: string;
  815. code: string;
  816. name: string;
  817. }
  818. export interface UpdateProductVariants_updateProductVariants_translations {
  819. __typename: "ProductVariantTranslation";
  820. id: string;
  821. languageCode: LanguageCode;
  822. name: string;
  823. }
  824. export interface UpdateProductVariants_updateProductVariants {
  825. __typename: "ProductVariant";
  826. id: string;
  827. languageCode: LanguageCode;
  828. name: string;
  829. price: number;
  830. sku: string;
  831. image: string | null;
  832. options: UpdateProductVariants_updateProductVariants_options[];
  833. facetValues: UpdateProductVariants_updateProductVariants_facetValues[];
  834. translations: UpdateProductVariants_updateProductVariants_translations[];
  835. }
  836. export interface UpdateProductVariants {
  837. /**
  838. * Update existing ProductVariants
  839. */
  840. updateProductVariants: (UpdateProductVariants_updateProductVariants | null)[];
  841. }
  842. export interface UpdateProductVariantsVariables {
  843. input: UpdateProductVariantInput[];
  844. }
  845. /* tslint:disable */
  846. // This file was automatically generated and should not be edited.
  847. // ====================================================
  848. // GraphQL mutation operation: CreateProductOptionGroup
  849. // ====================================================
  850. export interface CreateProductOptionGroup_createProductOptionGroup_translations {
  851. __typename: "ProductOptionGroupTranslation";
  852. name: string;
  853. }
  854. export interface CreateProductOptionGroup_createProductOptionGroup_options_translations {
  855. __typename: "ProductOptionTranslation";
  856. name: string;
  857. }
  858. export interface CreateProductOptionGroup_createProductOptionGroup_options {
  859. __typename: "ProductOption";
  860. id: string;
  861. languageCode: LanguageCode | null;
  862. name: string | null;
  863. code: string | null;
  864. translations: CreateProductOptionGroup_createProductOptionGroup_options_translations[];
  865. }
  866. export interface CreateProductOptionGroup_createProductOptionGroup {
  867. __typename: "ProductOptionGroup";
  868. id: string;
  869. languageCode: LanguageCode;
  870. code: string;
  871. name: string;
  872. translations: CreateProductOptionGroup_createProductOptionGroup_translations[];
  873. options: CreateProductOptionGroup_createProductOptionGroup_options[];
  874. }
  875. export interface CreateProductOptionGroup {
  876. /**
  877. * Create a new ProductOptionGroup
  878. */
  879. createProductOptionGroup: CreateProductOptionGroup_createProductOptionGroup;
  880. }
  881. export interface CreateProductOptionGroupVariables {
  882. input: CreateProductOptionGroupInput;
  883. }
  884. /* tslint:disable */
  885. // This file was automatically generated and should not be edited.
  886. // ====================================================
  887. // GraphQL mutation operation: AddOptionGroupToProduct
  888. // ====================================================
  889. export interface AddOptionGroupToProduct_addOptionGroupToProduct_optionGroups_options {
  890. __typename: "ProductOption";
  891. id: string;
  892. code: string | null;
  893. }
  894. export interface AddOptionGroupToProduct_addOptionGroupToProduct_optionGroups {
  895. __typename: "ProductOptionGroup";
  896. id: string;
  897. code: string;
  898. options: AddOptionGroupToProduct_addOptionGroupToProduct_optionGroups_options[];
  899. }
  900. export interface AddOptionGroupToProduct_addOptionGroupToProduct {
  901. __typename: "Product";
  902. id: string;
  903. optionGroups: AddOptionGroupToProduct_addOptionGroupToProduct_optionGroups[];
  904. }
  905. export interface AddOptionGroupToProduct {
  906. /**
  907. * Add an OptionGroup to a Product
  908. */
  909. addOptionGroupToProduct: AddOptionGroupToProduct_addOptionGroupToProduct;
  910. }
  911. export interface AddOptionGroupToProductVariables {
  912. productId: string;
  913. optionGroupId: string;
  914. }
  915. /* tslint:disable */
  916. // This file was automatically generated and should not be edited.
  917. // ====================================================
  918. // GraphQL mutation operation: RemoveOptionGroupFromProduct
  919. // ====================================================
  920. export interface RemoveOptionGroupFromProduct_removeOptionGroupFromProduct_optionGroups_options {
  921. __typename: "ProductOption";
  922. id: string;
  923. code: string | null;
  924. }
  925. export interface RemoveOptionGroupFromProduct_removeOptionGroupFromProduct_optionGroups {
  926. __typename: "ProductOptionGroup";
  927. id: string;
  928. code: string;
  929. options: RemoveOptionGroupFromProduct_removeOptionGroupFromProduct_optionGroups_options[];
  930. }
  931. export interface RemoveOptionGroupFromProduct_removeOptionGroupFromProduct {
  932. __typename: "Product";
  933. id: string;
  934. optionGroups: RemoveOptionGroupFromProduct_removeOptionGroupFromProduct_optionGroups[];
  935. }
  936. export interface RemoveOptionGroupFromProduct {
  937. /**
  938. * Remove an OptionGroup from a Product
  939. */
  940. removeOptionGroupFromProduct: RemoveOptionGroupFromProduct_removeOptionGroupFromProduct;
  941. }
  942. export interface RemoveOptionGroupFromProductVariables {
  943. productId: string;
  944. optionGroupId: string;
  945. }
  946. /* tslint:disable */
  947. // This file was automatically generated and should not be edited.
  948. // ====================================================
  949. // GraphQL mutation operation: ApplyFacetValuesToProductVariants
  950. // ====================================================
  951. export interface ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants_options {
  952. __typename: "ProductOption";
  953. id: string;
  954. code: string | null;
  955. languageCode: LanguageCode | null;
  956. name: string | null;
  957. }
  958. export interface ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants_facetValues {
  959. __typename: "FacetValue";
  960. id: string;
  961. code: string;
  962. name: string;
  963. }
  964. export interface ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants_translations {
  965. __typename: "ProductVariantTranslation";
  966. id: string;
  967. languageCode: LanguageCode;
  968. name: string;
  969. }
  970. export interface ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants {
  971. __typename: "ProductVariant";
  972. id: string;
  973. languageCode: LanguageCode;
  974. name: string;
  975. price: number;
  976. sku: string;
  977. image: string | null;
  978. options: ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants_options[];
  979. facetValues: ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants_facetValues[];
  980. translations: ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants_translations[];
  981. }
  982. export interface ApplyFacetValuesToProductVariants {
  983. /**
  984. * Applies a FacetValue to the given ProductVariants
  985. */
  986. applyFacetValuesToProductVariants: ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants[];
  987. }
  988. export interface ApplyFacetValuesToProductVariantsVariables {
  989. facetValueIds: string[];
  990. productVariantIds: string[];
  991. }
  992. /* tslint:disable */
  993. // This file was automatically generated and should not be edited.
  994. // ====================================================
  995. // GraphQL query operation: GetProductWithVariants
  996. // ====================================================
  997. export interface GetProductWithVariants_product_translations {
  998. __typename: "ProductTranslation";
  999. languageCode: LanguageCode;
  1000. name: string;
  1001. slug: string;
  1002. description: string;
  1003. }
  1004. export interface GetProductWithVariants_product_optionGroups {
  1005. __typename: "ProductOptionGroup";
  1006. id: string;
  1007. languageCode: LanguageCode;
  1008. code: string;
  1009. name: string;
  1010. }
  1011. export interface GetProductWithVariants_product_variants_options {
  1012. __typename: "ProductOption";
  1013. id: string;
  1014. code: string | null;
  1015. languageCode: LanguageCode | null;
  1016. name: string | null;
  1017. }
  1018. export interface GetProductWithVariants_product_variants_facetValues {
  1019. __typename: "FacetValue";
  1020. id: string;
  1021. code: string;
  1022. name: string;
  1023. }
  1024. export interface GetProductWithVariants_product_variants_translations {
  1025. __typename: "ProductVariantTranslation";
  1026. id: string;
  1027. languageCode: LanguageCode;
  1028. name: string;
  1029. }
  1030. export interface GetProductWithVariants_product_variants {
  1031. __typename: "ProductVariant";
  1032. id: string;
  1033. languageCode: LanguageCode;
  1034. name: string;
  1035. price: number;
  1036. sku: string;
  1037. image: string | null;
  1038. options: GetProductWithVariants_product_variants_options[];
  1039. facetValues: GetProductWithVariants_product_variants_facetValues[];
  1040. translations: GetProductWithVariants_product_variants_translations[];
  1041. }
  1042. export interface GetProductWithVariants_product {
  1043. __typename: "Product";
  1044. id: string;
  1045. languageCode: LanguageCode;
  1046. name: string;
  1047. slug: string;
  1048. image: string;
  1049. description: string;
  1050. translations: GetProductWithVariants_product_translations[];
  1051. optionGroups: GetProductWithVariants_product_optionGroups[];
  1052. variants: GetProductWithVariants_product_variants[];
  1053. }
  1054. export interface GetProductWithVariants {
  1055. product: GetProductWithVariants_product | null;
  1056. }
  1057. export interface GetProductWithVariantsVariables {
  1058. id: string;
  1059. languageCode?: LanguageCode | null;
  1060. }
  1061. /* tslint:disable */
  1062. // This file was automatically generated and should not be edited.
  1063. // ====================================================
  1064. // GraphQL query operation: GetProductList
  1065. // ====================================================
  1066. export interface GetProductList_products_items {
  1067. __typename: "Product";
  1068. id: string;
  1069. languageCode: LanguageCode;
  1070. name: string;
  1071. slug: string;
  1072. description: string;
  1073. }
  1074. export interface GetProductList_products {
  1075. __typename: "ProductList";
  1076. items: GetProductList_products_items[];
  1077. totalItems: number;
  1078. }
  1079. export interface GetProductList {
  1080. products: GetProductList_products;
  1081. }
  1082. export interface GetProductListVariables {
  1083. options?: ProductListOptions | null;
  1084. languageCode?: LanguageCode | null;
  1085. }
  1086. /* tslint:disable */
  1087. // This file was automatically generated and should not be edited.
  1088. // ====================================================
  1089. // GraphQL query operation: GetProductOptionGroups
  1090. // ====================================================
  1091. export interface GetProductOptionGroups_productOptionGroups_options {
  1092. __typename: "ProductOption";
  1093. id: string;
  1094. languageCode: LanguageCode | null;
  1095. code: string | null;
  1096. name: string | null;
  1097. }
  1098. export interface GetProductOptionGroups_productOptionGroups {
  1099. __typename: "ProductOptionGroup";
  1100. id: string;
  1101. languageCode: LanguageCode;
  1102. code: string;
  1103. name: string;
  1104. options: GetProductOptionGroups_productOptionGroups_options[];
  1105. }
  1106. export interface GetProductOptionGroups {
  1107. productOptionGroups: GetProductOptionGroups_productOptionGroups[];
  1108. }
  1109. export interface GetProductOptionGroupsVariables {
  1110. filterTerm?: string | null;
  1111. languageCode?: LanguageCode | null;
  1112. }
  1113. /* tslint:disable */
  1114. // This file was automatically generated and should not be edited.
  1115. // ====================================================
  1116. // GraphQL fragment: Administrator
  1117. // ====================================================
  1118. export interface Administrator_user_roles {
  1119. __typename: "Role";
  1120. code: string;
  1121. description: string;
  1122. permissions: Permission[];
  1123. }
  1124. export interface Administrator_user {
  1125. __typename: "User";
  1126. id: string;
  1127. identifier: string;
  1128. lastLogin: string | null;
  1129. roles: Administrator_user_roles[];
  1130. }
  1131. export interface Administrator {
  1132. __typename: "Administrator";
  1133. id: string;
  1134. firstName: string;
  1135. lastName: string;
  1136. emailAddress: string;
  1137. user: Administrator_user;
  1138. }
  1139. /* tslint:disable */
  1140. // This file was automatically generated and should not be edited.
  1141. // ====================================================
  1142. // GraphQL fragment: Role
  1143. // ====================================================
  1144. export interface Role_channels {
  1145. __typename: "Channel";
  1146. id: string;
  1147. code: string;
  1148. token: string;
  1149. }
  1150. export interface Role {
  1151. __typename: "Role";
  1152. id: string;
  1153. code: string;
  1154. description: string;
  1155. permissions: Permission[];
  1156. channels: Role_channels[];
  1157. }
  1158. /* tslint:disable */
  1159. // This file was automatically generated and should not be edited.
  1160. // ====================================================
  1161. // GraphQL fragment: CurrentUser
  1162. // ====================================================
  1163. export interface CurrentUser {
  1164. __typename: "CurrentUser";
  1165. id: string;
  1166. identifier: string;
  1167. channelTokens: string[];
  1168. roles: string[];
  1169. }
  1170. /* tslint:disable */
  1171. // This file was automatically generated and should not be edited.
  1172. // ====================================================
  1173. // GraphQL fragment: FacetValue
  1174. // ====================================================
  1175. export interface FacetValue_translations {
  1176. __typename: "FacetValueTranslation";
  1177. id: string;
  1178. languageCode: LanguageCode;
  1179. name: string;
  1180. }
  1181. export interface FacetValue {
  1182. __typename: "FacetValue";
  1183. id: string;
  1184. languageCode: LanguageCode | null;
  1185. code: string;
  1186. name: string;
  1187. translations: FacetValue_translations[];
  1188. }
  1189. /* tslint:disable */
  1190. // This file was automatically generated and should not be edited.
  1191. // ====================================================
  1192. // GraphQL fragment: FacetWithValues
  1193. // ====================================================
  1194. export interface FacetWithValues_translations {
  1195. __typename: "FacetTranslation";
  1196. id: string;
  1197. languageCode: LanguageCode;
  1198. name: string;
  1199. }
  1200. export interface FacetWithValues_values_translations {
  1201. __typename: "FacetValueTranslation";
  1202. id: string;
  1203. languageCode: LanguageCode;
  1204. name: string;
  1205. }
  1206. export interface FacetWithValues_values {
  1207. __typename: "FacetValue";
  1208. id: string;
  1209. languageCode: LanguageCode | null;
  1210. code: string;
  1211. name: string;
  1212. translations: FacetWithValues_values_translations[];
  1213. }
  1214. export interface FacetWithValues {
  1215. __typename: "Facet";
  1216. id: string;
  1217. languageCode: LanguageCode;
  1218. code: string;
  1219. name: string;
  1220. translations: FacetWithValues_translations[];
  1221. values: FacetWithValues_values[];
  1222. }
  1223. /* tslint:disable */
  1224. // This file was automatically generated and should not be edited.
  1225. // ====================================================
  1226. // GraphQL fragment: ProductVariant
  1227. // ====================================================
  1228. export interface ProductVariant_options {
  1229. __typename: "ProductOption";
  1230. id: string;
  1231. code: string | null;
  1232. languageCode: LanguageCode | null;
  1233. name: string | null;
  1234. }
  1235. export interface ProductVariant_facetValues {
  1236. __typename: "FacetValue";
  1237. id: string;
  1238. code: string;
  1239. name: string;
  1240. }
  1241. export interface ProductVariant_translations {
  1242. __typename: "ProductVariantTranslation";
  1243. id: string;
  1244. languageCode: LanguageCode;
  1245. name: string;
  1246. }
  1247. export interface ProductVariant {
  1248. __typename: "ProductVariant";
  1249. id: string;
  1250. languageCode: LanguageCode;
  1251. name: string;
  1252. price: number;
  1253. sku: string;
  1254. image: string | null;
  1255. options: ProductVariant_options[];
  1256. facetValues: ProductVariant_facetValues[];
  1257. translations: ProductVariant_translations[];
  1258. }
  1259. /* tslint:disable */
  1260. // This file was automatically generated and should not be edited.
  1261. // ====================================================
  1262. // GraphQL fragment: ProductWithVariants
  1263. // ====================================================
  1264. export interface ProductWithVariants_translations {
  1265. __typename: "ProductTranslation";
  1266. languageCode: LanguageCode;
  1267. name: string;
  1268. slug: string;
  1269. description: string;
  1270. }
  1271. export interface ProductWithVariants_optionGroups {
  1272. __typename: "ProductOptionGroup";
  1273. id: string;
  1274. languageCode: LanguageCode;
  1275. code: string;
  1276. name: string;
  1277. }
  1278. export interface ProductWithVariants_variants_options {
  1279. __typename: "ProductOption";
  1280. id: string;
  1281. code: string | null;
  1282. languageCode: LanguageCode | null;
  1283. name: string | null;
  1284. }
  1285. export interface ProductWithVariants_variants_facetValues {
  1286. __typename: "FacetValue";
  1287. id: string;
  1288. code: string;
  1289. name: string;
  1290. }
  1291. export interface ProductWithVariants_variants_translations {
  1292. __typename: "ProductVariantTranslation";
  1293. id: string;
  1294. languageCode: LanguageCode;
  1295. name: string;
  1296. }
  1297. export interface ProductWithVariants_variants {
  1298. __typename: "ProductVariant";
  1299. id: string;
  1300. languageCode: LanguageCode;
  1301. name: string;
  1302. price: number;
  1303. sku: string;
  1304. image: string | null;
  1305. options: ProductWithVariants_variants_options[];
  1306. facetValues: ProductWithVariants_variants_facetValues[];
  1307. translations: ProductWithVariants_variants_translations[];
  1308. }
  1309. export interface ProductWithVariants {
  1310. __typename: "Product";
  1311. id: string;
  1312. languageCode: LanguageCode;
  1313. name: string;
  1314. slug: string;
  1315. image: string;
  1316. description: string;
  1317. translations: ProductWithVariants_translations[];
  1318. optionGroups: ProductWithVariants_optionGroups[];
  1319. variants: ProductWithVariants_variants[];
  1320. }
  1321. /* tslint:disable */
  1322. // This file was automatically generated and should not be edited.
  1323. // ====================================================
  1324. // GraphQL fragment: ProductOptionGroup
  1325. // ====================================================
  1326. export interface ProductOptionGroup_translations {
  1327. __typename: "ProductOptionGroupTranslation";
  1328. name: string;
  1329. }
  1330. export interface ProductOptionGroup_options_translations {
  1331. __typename: "ProductOptionTranslation";
  1332. name: string;
  1333. }
  1334. export interface ProductOptionGroup_options {
  1335. __typename: "ProductOption";
  1336. id: string;
  1337. languageCode: LanguageCode | null;
  1338. name: string | null;
  1339. code: string | null;
  1340. translations: ProductOptionGroup_options_translations[];
  1341. }
  1342. export interface ProductOptionGroup {
  1343. __typename: "ProductOptionGroup";
  1344. id: string;
  1345. languageCode: LanguageCode;
  1346. code: string;
  1347. name: string;
  1348. translations: ProductOptionGroup_translations[];
  1349. options: ProductOptionGroup_options[];
  1350. }
  1351. /* tslint:disable */
  1352. // This file was automatically generated and should not be edited.
  1353. //==============================================================
  1354. // START Enums and Input Objects
  1355. //==============================================================
  1356. /**
  1357. * ISO 639-1 language code
  1358. */
  1359. export enum LanguageCode {
  1360. aa = "aa",
  1361. ab = "ab",
  1362. ae = "ae",
  1363. af = "af",
  1364. ak = "ak",
  1365. am = "am",
  1366. an = "an",
  1367. ar = "ar",
  1368. as = "as",
  1369. av = "av",
  1370. ay = "ay",
  1371. az = "az",
  1372. ba = "ba",
  1373. be = "be",
  1374. bg = "bg",
  1375. bh = "bh",
  1376. bi = "bi",
  1377. bm = "bm",
  1378. bn = "bn",
  1379. bo = "bo",
  1380. br = "br",
  1381. bs = "bs",
  1382. ca = "ca",
  1383. ce = "ce",
  1384. ch = "ch",
  1385. co = "co",
  1386. cr = "cr",
  1387. cs = "cs",
  1388. cu = "cu",
  1389. cv = "cv",
  1390. cy = "cy",
  1391. da = "da",
  1392. de = "de",
  1393. dv = "dv",
  1394. dz = "dz",
  1395. ee = "ee",
  1396. el = "el",
  1397. en = "en",
  1398. eo = "eo",
  1399. es = "es",
  1400. et = "et",
  1401. eu = "eu",
  1402. fa = "fa",
  1403. ff = "ff",
  1404. fi = "fi",
  1405. fj = "fj",
  1406. fo = "fo",
  1407. fr = "fr",
  1408. fy = "fy",
  1409. ga = "ga",
  1410. gd = "gd",
  1411. gl = "gl",
  1412. gn = "gn",
  1413. gu = "gu",
  1414. gv = "gv",
  1415. ha = "ha",
  1416. he = "he",
  1417. hi = "hi",
  1418. ho = "ho",
  1419. hr = "hr",
  1420. ht = "ht",
  1421. hu = "hu",
  1422. hy = "hy",
  1423. hz = "hz",
  1424. ia = "ia",
  1425. id = "id",
  1426. ie = "ie",
  1427. ig = "ig",
  1428. ii = "ii",
  1429. ik = "ik",
  1430. io = "io",
  1431. is = "is",
  1432. it = "it",
  1433. iu = "iu",
  1434. ja = "ja",
  1435. jv = "jv",
  1436. ka = "ka",
  1437. kg = "kg",
  1438. ki = "ki",
  1439. kj = "kj",
  1440. kk = "kk",
  1441. kl = "kl",
  1442. km = "km",
  1443. kn = "kn",
  1444. ko = "ko",
  1445. kr = "kr",
  1446. ks = "ks",
  1447. ku = "ku",
  1448. kv = "kv",
  1449. kw = "kw",
  1450. ky = "ky",
  1451. la = "la",
  1452. lb = "lb",
  1453. lg = "lg",
  1454. li = "li",
  1455. ln = "ln",
  1456. lo = "lo",
  1457. lt = "lt",
  1458. lu = "lu",
  1459. lv = "lv",
  1460. mg = "mg",
  1461. mh = "mh",
  1462. mi = "mi",
  1463. mk = "mk",
  1464. ml = "ml",
  1465. mn = "mn",
  1466. mr = "mr",
  1467. ms = "ms",
  1468. mt = "mt",
  1469. my = "my",
  1470. na = "na",
  1471. nb = "nb",
  1472. nd = "nd",
  1473. ne = "ne",
  1474. ng = "ng",
  1475. nl = "nl",
  1476. nn = "nn",
  1477. no = "no",
  1478. nr = "nr",
  1479. nv = "nv",
  1480. ny = "ny",
  1481. oc = "oc",
  1482. oj = "oj",
  1483. om = "om",
  1484. or = "or",
  1485. os = "os",
  1486. pa = "pa",
  1487. pi = "pi",
  1488. pl = "pl",
  1489. ps = "ps",
  1490. pt = "pt",
  1491. qu = "qu",
  1492. rm = "rm",
  1493. rn = "rn",
  1494. ro = "ro",
  1495. ru = "ru",
  1496. rw = "rw",
  1497. sa = "sa",
  1498. sc = "sc",
  1499. sd = "sd",
  1500. se = "se",
  1501. sg = "sg",
  1502. si = "si",
  1503. sk = "sk",
  1504. sl = "sl",
  1505. sm = "sm",
  1506. sn = "sn",
  1507. so = "so",
  1508. sq = "sq",
  1509. sr = "sr",
  1510. ss = "ss",
  1511. st = "st",
  1512. su = "su",
  1513. sv = "sv",
  1514. sw = "sw",
  1515. ta = "ta",
  1516. te = "te",
  1517. tg = "tg",
  1518. th = "th",
  1519. ti = "ti",
  1520. tk = "tk",
  1521. tl = "tl",
  1522. tn = "tn",
  1523. to = "to",
  1524. tr = "tr",
  1525. ts = "ts",
  1526. tt = "tt",
  1527. tw = "tw",
  1528. ty = "ty",
  1529. ug = "ug",
  1530. uk = "uk",
  1531. ur = "ur",
  1532. uz = "uz",
  1533. ve = "ve",
  1534. vi = "vi",
  1535. vo = "vo",
  1536. wa = "wa",
  1537. wo = "wo",
  1538. xh = "xh",
  1539. yi = "yi",
  1540. yo = "yo",
  1541. za = "za",
  1542. zh = "zh",
  1543. zu = "zu",
  1544. }
  1545. /**
  1546. * Permissions for administrators
  1547. */
  1548. export enum Permission {
  1549. Authenticated = "Authenticated",
  1550. CreateAdministrator = "CreateAdministrator",
  1551. CreateCatalog = "CreateCatalog",
  1552. CreateCustomer = "CreateCustomer",
  1553. CreateOrder = "CreateOrder",
  1554. DeleteAdministrator = "DeleteAdministrator",
  1555. DeleteCatalog = "DeleteCatalog",
  1556. DeleteCustomer = "DeleteCustomer",
  1557. DeleteOrder = "DeleteOrder",
  1558. ReadAdministrator = "ReadAdministrator",
  1559. ReadCatalog = "ReadCatalog",
  1560. ReadCustomer = "ReadCustomer",
  1561. ReadOrder = "ReadOrder",
  1562. SuperAdmin = "SuperAdmin",
  1563. UpdateAdministrator = "UpdateAdministrator",
  1564. UpdateCatalog = "UpdateCatalog",
  1565. UpdateCustomer = "UpdateCustomer",
  1566. UpdateOrder = "UpdateOrder",
  1567. }
  1568. export enum SortOrder {
  1569. ASC = "ASC",
  1570. DESC = "DESC",
  1571. }
  1572. export interface AdministratorFilterParameter {
  1573. firstName?: StringOperators | null;
  1574. lastName?: StringOperators | null;
  1575. emailAddress?: StringOperators | null;
  1576. createdAt?: DateOperators | null;
  1577. updatedAt?: DateOperators | null;
  1578. }
  1579. export interface AdministratorListOptions {
  1580. take?: number | null;
  1581. skip?: number | null;
  1582. sort?: AdministratorSortParameter | null;
  1583. filter?: AdministratorFilterParameter | null;
  1584. }
  1585. export interface AdministratorSortParameter {
  1586. id?: SortOrder | null;
  1587. createdAt?: SortOrder | null;
  1588. updatedAt?: SortOrder | null;
  1589. firstName?: SortOrder | null;
  1590. lastName?: SortOrder | null;
  1591. emailAddress?: SortOrder | null;
  1592. }
  1593. export interface BooleanOperators {
  1594. eq?: boolean | null;
  1595. }
  1596. export interface CreateAdministratorInput {
  1597. firstName?: string | null;
  1598. lastName?: string | null;
  1599. emailAddress: string;
  1600. password: string;
  1601. }
  1602. export interface CreateFacetCustomFieldsInput {
  1603. searchable?: boolean | null;
  1604. }
  1605. export interface CreateFacetInput {
  1606. code: string;
  1607. translations: FacetTranslationInput[];
  1608. values?: CreateFacetValueWithFacetInput[] | null;
  1609. customFields?: CreateFacetCustomFieldsInput | null;
  1610. }
  1611. export interface CreateFacetValueCustomFieldsInput {
  1612. link?: string | null;
  1613. available?: boolean | null;
  1614. }
  1615. export interface CreateFacetValueInput {
  1616. facetId: string;
  1617. code: string;
  1618. translations: FacetValueTranslationInput[];
  1619. customFields?: CreateFacetValueCustomFieldsInput | null;
  1620. }
  1621. export interface CreateFacetValueWithFacetInput {
  1622. code: string;
  1623. translations: FacetValueTranslationInput[];
  1624. }
  1625. export interface CreateProductCustomFieldsInput {
  1626. infoUrl?: string | null;
  1627. downloadable?: boolean | null;
  1628. }
  1629. export interface CreateProductInput {
  1630. image?: string | null;
  1631. translations: ProductTranslationInput[];
  1632. optionGroupCodes?: string[] | null;
  1633. customFields?: CreateProductCustomFieldsInput | null;
  1634. }
  1635. export interface CreateProductOptionGroupInput {
  1636. code: string;
  1637. translations: ProductOptionGroupTranslationInput[];
  1638. options: CreateProductOptionInput[];
  1639. customFields?: any | null;
  1640. }
  1641. export interface CreateProductOptionInput {
  1642. code: string;
  1643. translations: ProductOptionGroupTranslationInput[];
  1644. customFields?: any | null;
  1645. }
  1646. export interface CreateRoleInput {
  1647. code: string;
  1648. description: string;
  1649. permissions: Permission[];
  1650. }
  1651. export interface DateOperators {
  1652. eq?: any | null;
  1653. before?: any | null;
  1654. after?: any | null;
  1655. between?: DateRange | null;
  1656. }
  1657. export interface DateRange {
  1658. start: any;
  1659. end: any;
  1660. }
  1661. export interface FacetFilterParameter {
  1662. name?: StringOperators | null;
  1663. code?: StringOperators | null;
  1664. createdAt?: DateOperators | null;
  1665. updatedAt?: DateOperators | null;
  1666. searchable?: BooleanOperators | null;
  1667. }
  1668. export interface FacetListOptions {
  1669. take?: number | null;
  1670. skip?: number | null;
  1671. sort?: FacetSortParameter | null;
  1672. filter?: FacetFilterParameter | null;
  1673. }
  1674. export interface FacetSortParameter {
  1675. id?: SortOrder | null;
  1676. createdAt?: SortOrder | null;
  1677. updatedAt?: SortOrder | null;
  1678. name?: SortOrder | null;
  1679. code?: SortOrder | null;
  1680. searchable?: SortOrder | null;
  1681. }
  1682. export interface FacetTranslationInput {
  1683. id?: string | null;
  1684. languageCode: LanguageCode;
  1685. name: string;
  1686. customFields?: any | null;
  1687. }
  1688. export interface FacetValueTranslationInput {
  1689. id?: string | null;
  1690. languageCode: LanguageCode;
  1691. name: string;
  1692. customFields?: any | null;
  1693. }
  1694. export interface ProductFilterParameter {
  1695. name?: StringOperators | null;
  1696. slug?: StringOperators | null;
  1697. description?: StringOperators | null;
  1698. createdAt?: DateOperators | null;
  1699. updatedAt?: DateOperators | null;
  1700. infoUrl?: StringOperators | null;
  1701. downloadable?: BooleanOperators | null;
  1702. nickname?: StringOperators | null;
  1703. }
  1704. export interface ProductListOptions {
  1705. take?: number | null;
  1706. skip?: number | null;
  1707. sort?: ProductSortParameter | null;
  1708. filter?: ProductFilterParameter | null;
  1709. }
  1710. export interface ProductOptionGroupTranslationInput {
  1711. id?: string | null;
  1712. languageCode: LanguageCode;
  1713. name: string;
  1714. customFields?: any | null;
  1715. }
  1716. export interface ProductSortParameter {
  1717. id?: SortOrder | null;
  1718. createdAt?: SortOrder | null;
  1719. updatedAt?: SortOrder | null;
  1720. name?: SortOrder | null;
  1721. slug?: SortOrder | null;
  1722. description?: SortOrder | null;
  1723. image?: SortOrder | null;
  1724. infoUrl?: SortOrder | null;
  1725. downloadable?: SortOrder | null;
  1726. nickname?: SortOrder | null;
  1727. }
  1728. export interface ProductTranslationCustomFieldsInput {
  1729. nickname?: string | null;
  1730. }
  1731. export interface ProductTranslationInput {
  1732. id?: string | null;
  1733. languageCode: LanguageCode;
  1734. name: string;
  1735. slug: string;
  1736. description: string;
  1737. customFields?: ProductTranslationCustomFieldsInput | null;
  1738. }
  1739. export interface ProductVariantTranslationInput {
  1740. id?: string | null;
  1741. languageCode: LanguageCode;
  1742. name: string;
  1743. customFields?: any | null;
  1744. }
  1745. export interface RoleFilterParameter {
  1746. code?: StringOperators | null;
  1747. description?: StringOperators | null;
  1748. createdAt?: DateOperators | null;
  1749. updatedAt?: DateOperators | null;
  1750. }
  1751. export interface RoleListOptions {
  1752. take?: number | null;
  1753. skip?: number | null;
  1754. sort?: RoleSortParameter | null;
  1755. filter?: RoleFilterParameter | null;
  1756. }
  1757. export interface RoleSortParameter {
  1758. id?: SortOrder | null;
  1759. createdAt?: SortOrder | null;
  1760. updatedAt?: SortOrder | null;
  1761. code?: SortOrder | null;
  1762. description?: SortOrder | null;
  1763. }
  1764. export interface StringOperators {
  1765. eq?: string | null;
  1766. contains?: string | null;
  1767. }
  1768. export interface UpdateFacetCustomFieldsInput {
  1769. searchable?: boolean | null;
  1770. }
  1771. export interface UpdateFacetInput {
  1772. id: string;
  1773. code: string;
  1774. translations: FacetTranslationInput[];
  1775. customFields?: UpdateFacetCustomFieldsInput | null;
  1776. }
  1777. export interface UpdateFacetValueCustomFieldsInput {
  1778. link?: string | null;
  1779. available?: boolean | null;
  1780. }
  1781. export interface UpdateFacetValueInput {
  1782. id: string;
  1783. code: string;
  1784. translations: FacetValueTranslationInput[];
  1785. customFields?: UpdateFacetValueCustomFieldsInput | null;
  1786. }
  1787. export interface UpdateProductCustomFieldsInput {
  1788. infoUrl?: string | null;
  1789. downloadable?: boolean | null;
  1790. }
  1791. export interface UpdateProductInput {
  1792. id: string;
  1793. image?: string | null;
  1794. translations: ProductTranslationInput[];
  1795. optionGroupCodes?: string[] | null;
  1796. customFields?: UpdateProductCustomFieldsInput | null;
  1797. }
  1798. export interface UpdateProductVariantInput {
  1799. id: string;
  1800. translations: ProductVariantTranslationInput[];
  1801. sku: string;
  1802. image?: string | null;
  1803. price: number;
  1804. customFields?: any | null;
  1805. }
  1806. export interface UpdateRoleInput {
  1807. id: string;
  1808. code: string;
  1809. description: string;
  1810. permissions: Permission[];
  1811. }
  1812. //==============================================================
  1813. // END Enums and Input Objects
  1814. //==============================================================