generated-types.ts 53 KB

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