@webiny/api-headless-cms-es-tasks 5.39.8 → 5.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"names":["constrains","amount","percentagePerTask","findValue","input","value","Error","calculateAmounts","values","amountOfRecords","Math","round","parseFloat","String","amountOfTasks","ceil","exports"],"sources":["calculateAmounts.ts"],"sourcesContent":["interface ICalculateAmounts {\n amountOfTasks: number;\n amountOfRecords: number;\n}\n\ninterface IMaxRecordsPerTask {\n amount: number;\n percentagePerTask: number;\n}\n\nconst constrains: IMaxRecordsPerTask[] = [\n {\n amount: 50,\n percentagePerTask: 100\n },\n {\n amount: 1000,\n percentagePerTask: 50\n },\n {\n amount: 100000,\n percentagePerTask: 20\n }\n // {\n // amount: 50000,\n // percentagePerTask: 10\n // },\n // {\n // amount: 750000,\n // percentagePerTask: 10\n // },\n // {\n // amount: 1000000,\n // percentagePerTask: 2\n // },\n // {\n // amount: 5000000,\n // percentagePerTask: 1\n // },\n // {\n // amount: 10000000,\n // percentagePerTask: 0.5\n // }\n];\n\nconst findValue = (input: number): IMaxRecordsPerTask => {\n for (const value of constrains) {\n if (input <= value.amount) {\n return value;\n }\n }\n throw new Error(`No valid value found - input value is too large: ${input}.`);\n};\n\nexport const calculateAmounts = (input: number): ICalculateAmounts => {\n const values = findValue(input);\n\n const { percentagePerTask } = values;\n /**\n * Do not ask...\n */\n const amountOfRecords =\n percentagePerTask < 100\n ? Math.round(parseFloat(String(input / (100 / percentagePerTask))))\n : input;\n\n const amountOfTasks = Math.ceil(100 / percentagePerTask);\n\n return {\n amountOfRecords,\n amountOfTasks\n };\n};\n"],"mappings":";;;;;;AAUA,MAAMA,UAAgC,GAAG,CACrC;EACIC,MAAM,EAAE,EAAE;EACVC,iBAAiB,EAAE;AACvB,CAAC,EACD;EACID,MAAM,EAAE,IAAI;EACZC,iBAAiB,EAAE;AACvB,CAAC,EACD;EACID,MAAM,EAAE,MAAM;EACdC,iBAAiB,EAAE;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,CACH;;AAED,MAAMC,SAAS,GAAIC,KAAa,IAAyB;EACrD,KAAK,MAAMC,KAAK,IAAIL,UAAU,EAAE;IAC5B,IAAII,KAAK,IAAIC,KAAK,CAACJ,MAAM,EAAE;MACvB,OAAOI,KAAK;IAChB;EACJ;EACA,MAAM,IAAIC,KAAK,CAAE,oDAAmDF,KAAM,GAAE,CAAC;AACjF,CAAC;AAEM,MAAMG,gBAAgB,GAAIH,KAAa,IAAwB;EAClE,MAAMI,MAAM,GAAGL,SAAS,CAACC,KAAK,CAAC;EAE/B,MAAM;IAAEF;EAAkB,CAAC,GAAGM,MAAM;EACpC;AACJ;AACA;EACI,MAAMC,eAAe,GACjBP,iBAAiB,GAAG,GAAG,GACjBQ,IAAI,CAACC,KAAK,CAACC,UAAU,CAACC,MAAM,CAACT,KAAK,IAAI,GAAG,GAAGF,iBAAiB,CAAC,CAAC,CAAC,CAAC,GACjEE,KAAK;EAEf,MAAMU,aAAa,GAAGJ,IAAI,CAACK,IAAI,CAAC,GAAG,GAAGb,iBAAiB,CAAC;EAExD,OAAO;IACHO,eAAe;IACfK;EACJ,CAAC;AACL,CAAC;AAACE,OAAA,CAAAT,gBAAA,GAAAA,gBAAA"}
1
+ {"version":3,"names":["constrains","amount","percentagePerTask","findValue","input","value","Error","calculateAmounts","values","amountOfRecords","Math","round","parseFloat","String","amountOfTasks","ceil","exports"],"sources":["calculateAmounts.ts"],"sourcesContent":["interface ICalculateAmounts {\n amountOfTasks: number;\n amountOfRecords: number;\n}\n\ninterface IMaxRecordsPerTask {\n amount: number;\n percentagePerTask: number;\n}\n\nconst constrains: IMaxRecordsPerTask[] = [\n {\n amount: 50,\n percentagePerTask: 100\n },\n {\n amount: 1000,\n percentagePerTask: 50\n },\n {\n amount: 100000,\n percentagePerTask: 20\n }\n // {\n // amount: 50000,\n // percentagePerTask: 10\n // },\n // {\n // amount: 750000,\n // percentagePerTask: 10\n // },\n // {\n // amount: 1000000,\n // percentagePerTask: 2\n // },\n // {\n // amount: 5000000,\n // percentagePerTask: 1\n // },\n // {\n // amount: 10000000,\n // percentagePerTask: 0.5\n // }\n];\n\nconst findValue = (input: number): IMaxRecordsPerTask => {\n for (const value of constrains) {\n if (input <= value.amount) {\n return value;\n }\n }\n throw new Error(`No valid value found - input value is too large: ${input}.`);\n};\n\nexport const calculateAmounts = (input: number): ICalculateAmounts => {\n const values = findValue(input);\n\n const { percentagePerTask } = values;\n /**\n * Do not ask...\n */\n const amountOfRecords =\n percentagePerTask < 100\n ? Math.round(parseFloat(String(input / (100 / percentagePerTask))))\n : input;\n\n const amountOfTasks = Math.ceil(100 / percentagePerTask);\n\n return {\n amountOfRecords,\n amountOfTasks\n };\n};\n"],"mappings":";;;;;;AAUA,MAAMA,UAAgC,GAAG,CACrC;EACIC,MAAM,EAAE,EAAE;EACVC,iBAAiB,EAAE;AACvB,CAAC,EACD;EACID,MAAM,EAAE,IAAI;EACZC,iBAAiB,EAAE;AACvB,CAAC,EACD;EACID,MAAM,EAAE,MAAM;EACdC,iBAAiB,EAAE;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,CACH;AAED,MAAMC,SAAS,GAAIC,KAAa,IAAyB;EACrD,KAAK,MAAMC,KAAK,IAAIL,UAAU,EAAE;IAC5B,IAAII,KAAK,IAAIC,KAAK,CAACJ,MAAM,EAAE;MACvB,OAAOI,KAAK;IAChB;EACJ;EACA,MAAM,IAAIC,KAAK,CAAE,oDAAmDF,KAAM,GAAE,CAAC;AACjF,CAAC;AAEM,MAAMG,gBAAgB,GAAIH,KAAa,IAAwB;EAClE,MAAMI,MAAM,GAAGL,SAAS,CAACC,KAAK,CAAC;EAE/B,MAAM;IAAEF;EAAkB,CAAC,GAAGM,MAAM;EACpC;AACJ;AACA;EACI,MAAMC,eAAe,GACjBP,iBAAiB,GAAG,GAAG,GACjBQ,IAAI,CAACC,KAAK,CAACC,UAAU,CAACC,MAAM,CAACT,KAAK,IAAI,GAAG,GAAGF,iBAAiB,CAAC,CAAC,CAAC,CAAC,GACjEE,KAAK;EAEf,MAAMU,aAAa,GAAGJ,IAAI,CAACK,IAAI,CAAC,GAAG,GAAGb,iBAAiB,CAAC;EAExD,OAAO;IACHO,eAAe;IACfK;EACJ,CAAC;AACL,CAAC;AAACE,OAAA,CAAAT,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -5,10 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.calculateSeconds = exports.WAIT_MIN_SECONDS = exports.WAIT_MAX_SECONDS = void 0;
7
7
  const recordsPerSecond = 4;
8
- const WAIT_MIN_SECONDS = 15;
9
- exports.WAIT_MIN_SECONDS = WAIT_MIN_SECONDS;
10
- const WAIT_MAX_SECONDS = 90;
11
- exports.WAIT_MAX_SECONDS = WAIT_MAX_SECONDS;
8
+ const WAIT_MIN_SECONDS = exports.WAIT_MIN_SECONDS = 15;
9
+ const WAIT_MAX_SECONDS = exports.WAIT_MAX_SECONDS = 90;
12
10
  const calculateSeconds = records => {
13
11
  const seconds = Math.ceil(records / recordsPerSecond);
14
12
  if (seconds > WAIT_MAX_SECONDS) {
@@ -1 +1 @@
1
- {"version":3,"names":["recordsPerSecond","WAIT_MIN_SECONDS","exports","WAIT_MAX_SECONDS","calculateSeconds","records","seconds","Math","ceil"],"sources":["calculateSeconds.ts"],"sourcesContent":["const recordsPerSecond = 4;\nexport const WAIT_MIN_SECONDS = 15;\nexport const WAIT_MAX_SECONDS = 90;\n\nexport const calculateSeconds = (records: number): number => {\n const seconds = Math.ceil(records / recordsPerSecond);\n if (seconds > WAIT_MAX_SECONDS) {\n return WAIT_MAX_SECONDS;\n } else if (seconds < WAIT_MIN_SECONDS) {\n return WAIT_MIN_SECONDS;\n } else if (seconds > 0) {\n return seconds;\n }\n return WAIT_MAX_SECONDS;\n};\n"],"mappings":";;;;;;AAAA,MAAMA,gBAAgB,GAAG,CAAC;AACnB,MAAMC,gBAAgB,GAAG,EAAE;AAACC,OAAA,CAAAD,gBAAA,GAAAA,gBAAA;AAC5B,MAAME,gBAAgB,GAAG,EAAE;AAACD,OAAA,CAAAC,gBAAA,GAAAA,gBAAA;AAE5B,MAAMC,gBAAgB,GAAIC,OAAe,IAAa;EACzD,MAAMC,OAAO,GAAGC,IAAI,CAACC,IAAI,CAACH,OAAO,GAAGL,gBAAgB,CAAC;EACrD,IAAIM,OAAO,GAAGH,gBAAgB,EAAE;IAC5B,OAAOA,gBAAgB;EAC3B,CAAC,MAAM,IAAIG,OAAO,GAAGL,gBAAgB,EAAE;IACnC,OAAOA,gBAAgB;EAC3B,CAAC,MAAM,IAAIK,OAAO,GAAG,CAAC,EAAE;IACpB,OAAOA,OAAO;EAClB;EACA,OAAOH,gBAAgB;AAC3B,CAAC;AAACD,OAAA,CAAAE,gBAAA,GAAAA,gBAAA"}
1
+ {"version":3,"names":["recordsPerSecond","WAIT_MIN_SECONDS","exports","WAIT_MAX_SECONDS","calculateSeconds","records","seconds","Math","ceil"],"sources":["calculateSeconds.ts"],"sourcesContent":["const recordsPerSecond = 4;\nexport const WAIT_MIN_SECONDS = 15;\nexport const WAIT_MAX_SECONDS = 90;\n\nexport const calculateSeconds = (records: number): number => {\n const seconds = Math.ceil(records / recordsPerSecond);\n if (seconds > WAIT_MAX_SECONDS) {\n return WAIT_MAX_SECONDS;\n } else if (seconds < WAIT_MIN_SECONDS) {\n return WAIT_MIN_SECONDS;\n } else if (seconds > 0) {\n return seconds;\n }\n return WAIT_MAX_SECONDS;\n};\n"],"mappings":";;;;;;AAAA,MAAMA,gBAAgB,GAAG,CAAC;AACnB,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,EAAE;AAC3B,MAAME,gBAAgB,GAAAD,OAAA,CAAAC,gBAAA,GAAG,EAAE;AAE3B,MAAMC,gBAAgB,GAAIC,OAAe,IAAa;EACzD,MAAMC,OAAO,GAAGC,IAAI,CAACC,IAAI,CAACH,OAAO,GAAGL,gBAAgB,CAAC;EACrD,IAAIM,OAAO,GAAGH,gBAAgB,EAAE;IAC5B,OAAOA,gBAAgB;EAC3B,CAAC,MAAM,IAAIG,OAAO,GAAGL,gBAAgB,EAAE;IACnC,OAAOA,gBAAgB;EAC3B,CAAC,MAAM,IAAIK,OAAO,GAAG,CAAC,EAAE;IACpB,OAAOA,OAAO;EAClB;EACA,OAAOH,gBAAgB;AAC3B,CAAC;AAACD,OAAA,CAAAE,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CARS_MODEL_ID = void 0;
7
- const CARS_MODEL_ID = "cars";
8
- exports.CARS_MODEL_ID = CARS_MODEL_ID;
7
+ const CARS_MODEL_ID = exports.CARS_MODEL_ID = "cars";
9
8
 
10
9
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CARS_MODEL_ID","exports"],"sources":["constants.ts"],"sourcesContent":["export const CARS_MODEL_ID = \"cars\";\n"],"mappings":";;;;;;AAAO,MAAMA,aAAa,GAAG,MAAM;AAACC,OAAA,CAAAD,aAAA,GAAAA,aAAA"}
1
+ {"version":3,"names":["CARS_MODEL_ID","exports"],"sources":["constants.ts"],"sourcesContent":["export const CARS_MODEL_ID = \"cars\";\n"],"mappings":";;;;;;AAAO,MAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,MAAM","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_group","require","_model","_utils","createModelAndGroup","params","context","modelId","overwrite","model","cms","listModels","find","m","group","listGroups","slug","groupData","createGroupData","createGroup","carsModel","createCarsModel","createModel","createIndex","client","elasticsearch","plugins","exports"],"sources":["createModelAndGroup.ts"],"sourcesContent":["import { CmsGroup, CmsModel } from \"@webiny/api-headless-cms/types\";\nimport { Context } from \"~/types\";\nimport { createGroupData } from \"./group\";\nimport { createCarsModel } from \"./model\";\nimport { createIndex } from \"~/utils\";\n\ninterface ICreateModelAndGroupParams {\n context: Context;\n modelId: string;\n overwrite?: boolean;\n}\nexport interface ICreateModelAndGroupResultSuccess {\n group: CmsGroup;\n model: CmsModel;\n}\nexport type ICreateModelAndGroupResult = string | ICreateModelAndGroupResultSuccess;\n\nexport const createModelAndGroup = async (\n params: ICreateModelAndGroupParams\n): Promise<ICreateModelAndGroupResult> => {\n const { context, modelId, overwrite = false } = params;\n /**\n * First we need to check if the model already exists in the database. If not, we need to create it.\n */\n let model = (await context.cms.listModels()).find(m => m.modelId === modelId);\n let group: CmsGroup | undefined;\n if (model && !overwrite) {\n return `Model \"${modelId}\" already exists.`;\n } else if (!model) {\n group = (await context.cms.listGroups()).find(group => group.slug === \"mocks\");\n if (!group) {\n const groupData = createGroupData();\n group = await context.cms.createGroup(groupData);\n }\n /**\n * Possibly we need to create the model.\n */\n const carsModel = createCarsModel(group);\n model = await context.cms.createModel(carsModel);\n }\n await createIndex({\n model,\n client: context.elasticsearch,\n plugins: context.plugins\n });\n\n return {\n group: group as CmsGroup,\n model: model as CmsModel\n };\n};\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAaO,MAAMG,mBAAmB,GAAG,MAC/BC,MAAkC,IACI;EACtC,MAAM;IAAEC,OAAO;IAAEC,OAAO;IAAEC,SAAS,GAAG;EAAM,CAAC,GAAGH,MAAM;EACtD;AACJ;AACA;EACI,IAAII,KAAK,GAAG,CAAC,MAAMH,OAAO,CAACI,GAAG,CAACC,UAAU,CAAC,CAAC,EAAEC,IAAI,CAACC,CAAC,IAAIA,CAAC,CAACN,OAAO,KAAKA,OAAO,CAAC;EAC7E,IAAIO,KAA2B;EAC/B,IAAIL,KAAK,IAAI,CAACD,SAAS,EAAE;IACrB,OAAQ,UAASD,OAAQ,mBAAkB;EAC/C,CAAC,MAAM,IAAI,CAACE,KAAK,EAAE;IACfK,KAAK,GAAG,CAAC,MAAMR,OAAO,CAACI,GAAG,CAACK,UAAU,CAAC,CAAC,EAAEH,IAAI,CAACE,KAAK,IAAIA,KAAK,CAACE,IAAI,KAAK,OAAO,CAAC;IAC9E,IAAI,CAACF,KAAK,EAAE;MACR,MAAMG,SAAS,GAAG,IAAAC,sBAAe,EAAC,CAAC;MACnCJ,KAAK,GAAG,MAAMR,OAAO,CAACI,GAAG,CAACS,WAAW,CAACF,SAAS,CAAC;IACpD;IACA;AACR;AACA;IACQ,MAAMG,SAAS,GAAG,IAAAC,sBAAe,EAACP,KAAK,CAAC;IACxCL,KAAK,GAAG,MAAMH,OAAO,CAACI,GAAG,CAACY,WAAW,CAACF,SAAS,CAAC;EACpD;EACA,MAAM,IAAAG,kBAAW,EAAC;IACdd,KAAK;IACLe,MAAM,EAAElB,OAAO,CAACmB,aAAa;IAC7BC,OAAO,EAAEpB,OAAO,CAACoB;EACrB,CAAC,CAAC;EAEF,OAAO;IACHZ,KAAK,EAAEA,KAAiB;IACxBL,KAAK,EAAEA;EACX,CAAC;AACL,CAAC;AAACkB,OAAA,CAAAvB,mBAAA,GAAAA,mBAAA"}
1
+ {"version":3,"names":["_group","require","_model","_utils","createModelAndGroup","params","context","modelId","overwrite","model","cms","listModels","find","m","group","listGroups","slug","groupData","createGroupData","createGroup","carsModel","createCarsModel","createModel","createIndex","client","elasticsearch","plugins","exports"],"sources":["createModelAndGroup.ts"],"sourcesContent":["import { CmsGroup, CmsModel } from \"@webiny/api-headless-cms/types\";\nimport { Context } from \"~/types\";\nimport { createGroupData } from \"./group\";\nimport { createCarsModel } from \"./model\";\nimport { createIndex } from \"~/utils\";\n\ninterface ICreateModelAndGroupParams {\n context: Context;\n modelId: string;\n overwrite?: boolean;\n}\nexport interface ICreateModelAndGroupResultSuccess {\n group: CmsGroup;\n model: CmsModel;\n}\nexport type ICreateModelAndGroupResult = string | ICreateModelAndGroupResultSuccess;\n\nexport const createModelAndGroup = async (\n params: ICreateModelAndGroupParams\n): Promise<ICreateModelAndGroupResult> => {\n const { context, modelId, overwrite = false } = params;\n /**\n * First we need to check if the model already exists in the database. If not, we need to create it.\n */\n let model = (await context.cms.listModels()).find(m => m.modelId === modelId);\n let group: CmsGroup | undefined;\n if (model && !overwrite) {\n return `Model \"${modelId}\" already exists.`;\n } else if (!model) {\n group = (await context.cms.listGroups()).find(group => group.slug === \"mocks\");\n if (!group) {\n const groupData = createGroupData();\n group = await context.cms.createGroup(groupData);\n }\n /**\n * Possibly we need to create the model.\n */\n const carsModel = createCarsModel(group);\n model = await context.cms.createModel(carsModel);\n }\n await createIndex({\n model,\n client: context.elasticsearch,\n plugins: context.plugins\n });\n\n return {\n group: group as CmsGroup,\n model: model as CmsModel\n };\n};\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAaO,MAAMG,mBAAmB,GAAG,MAC/BC,MAAkC,IACI;EACtC,MAAM;IAAEC,OAAO;IAAEC,OAAO;IAAEC,SAAS,GAAG;EAAM,CAAC,GAAGH,MAAM;EACtD;AACJ;AACA;EACI,IAAII,KAAK,GAAG,CAAC,MAAMH,OAAO,CAACI,GAAG,CAACC,UAAU,CAAC,CAAC,EAAEC,IAAI,CAACC,CAAC,IAAIA,CAAC,CAACN,OAAO,KAAKA,OAAO,CAAC;EAC7E,IAAIO,KAA2B;EAC/B,IAAIL,KAAK,IAAI,CAACD,SAAS,EAAE;IACrB,OAAQ,UAASD,OAAQ,mBAAkB;EAC/C,CAAC,MAAM,IAAI,CAACE,KAAK,EAAE;IACfK,KAAK,GAAG,CAAC,MAAMR,OAAO,CAACI,GAAG,CAACK,UAAU,CAAC,CAAC,EAAEH,IAAI,CAACE,KAAK,IAAIA,KAAK,CAACE,IAAI,KAAK,OAAO,CAAC;IAC9E,IAAI,CAACF,KAAK,EAAE;MACR,MAAMG,SAAS,GAAG,IAAAC,sBAAe,EAAC,CAAC;MACnCJ,KAAK,GAAG,MAAMR,OAAO,CAACI,GAAG,CAACS,WAAW,CAACF,SAAS,CAAC;IACpD;IACA;AACR;AACA;IACQ,MAAMG,SAAS,GAAG,IAAAC,sBAAe,EAACP,KAAK,CAAC;IACxCL,KAAK,GAAG,MAAMH,OAAO,CAACI,GAAG,CAACY,WAAW,CAACF,SAAS,CAAC;EACpD;EACA,MAAM,IAAAG,kBAAW,EAAC;IACdd,KAAK;IACLe,MAAM,EAAElB,OAAO,CAACmB,aAAa;IAC7BC,OAAO,EAAEpB,OAAO,CAACoB;EACrB,CAAC,CAAC;EAEF,OAAO;IACHZ,KAAK,EAAEA,KAAiB;IACxBL,KAAK,EAAEA;EACX,CAAC;AACL,CAAC;AAACkB,OAAA,CAAAvB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["createGroupData","id","icon","name","description","slug","exports"],"sources":["group.ts"],"sourcesContent":["import { CmsGroupCreateInput } from \"@webiny/api-headless-cms/types\";\n\nexport const createGroupData = (): CmsGroupCreateInput => {\n return {\n id: \"mocks\",\n icon: \"fas/star\",\n name: \"Mocks\",\n description: \"A group for mock models\",\n slug: \"mocks\"\n };\n};\n"],"mappings":";;;;;;AAEO,MAAMA,eAAe,GAAGA,CAAA,KAA2B;EACtD,OAAO;IACHC,EAAE,EAAE,OAAO;IACXC,IAAI,EAAE,UAAU;IAChBC,IAAI,EAAE,OAAO;IACbC,WAAW,EAAE,yBAAyB;IACtCC,IAAI,EAAE;EACV,CAAC;AACL,CAAC;AAACC,OAAA,CAAAN,eAAA,GAAAA,eAAA"}
1
+ {"version":3,"names":["createGroupData","id","icon","name","description","slug","exports"],"sources":["group.ts"],"sourcesContent":["import { CmsGroupCreateInput } from \"@webiny/api-headless-cms/types\";\n\nexport const createGroupData = (): CmsGroupCreateInput => {\n return {\n id: \"mocks\",\n icon: \"fas/star\",\n name: \"Mocks\",\n description: \"A group for mock models\",\n slug: \"mocks\"\n };\n};\n"],"mappings":";;;;;;AAEO,MAAMA,eAAe,GAAGA,CAAA,KAA2B;EACtD,OAAO;IACHC,EAAE,EAAE,OAAO;IACXC,IAAI,EAAE,UAAU;IAChBC,IAAI,EAAE,OAAO;IACbC,WAAW,EAAE,yBAAyB;IACtCC,IAAI,EAAE;EACV,CAAC;AACL,CAAC;AAACC,OAAA,CAAAN,eAAA,GAAAA,eAAA","ignoreList":[]}