@takeshape/schema 9.40.2 → 9.41.3

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.
Files changed (30) hide show
  1. package/dist/builtin-schema.d.ts.map +1 -1
  2. package/dist/builtin-schema.js +48 -89
  3. package/dist/schema-util.js +1 -1
  4. package/dist/template-shapes/templates.d.ts +1 -1
  5. package/dist/template-shapes/templates.d.ts.map +1 -1
  6. package/dist/template-shapes/templates.js +16 -8
  7. package/dist/template-shapes/where.js +2 -2
  8. package/es/builtin-schema.js +48 -89
  9. package/es/schema-util.js +1 -1
  10. package/es/template-shapes/templates.js +15 -7
  11. package/es/template-shapes/where.js +3 -3
  12. package/examples/latest/betzino.json +51 -51
  13. package/examples/latest/real-world-schema.json +0 -240
  14. package/examples/latest/rick-and-morty-ast.json +51 -51
  15. package/examples/latest/rick-and-morty-graphql.json +51 -51
  16. package/examples/latest/shopify-product-2022-07.json +201 -201
  17. package/examples/latest/shopify-product-2023-04.json +201 -201
  18. package/examples/latest/shopify-store-with-widget.json +51 -51
  19. package/examples/latest/stripe-product-runtime-schema.json +201 -201
  20. package/examples/latest/stripe-starter-resolved.json +51 -51
  21. package/examples/source/betzino.json +52 -52
  22. package/examples/source/real-world-schema.json +4 -172
  23. package/examples/source/rick-and-morty-ast.json +302 -117
  24. package/examples/source/rick-and-morty-graphql.json +213 -92
  25. package/examples/source/shopify-product-2022-07.json +202 -202
  26. package/examples/source/shopify-product-2023-04.json +202 -202
  27. package/examples/source/shopify-store-with-widget.json +485 -135
  28. package/examples/source/stripe-product-runtime-schema.json +202 -202
  29. package/examples/source/stripe-starter-resolved.json +52 -52
  30. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"builtin-schema.d.ts","sourceRoot":"","sources":["../../src/builtin-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AAEtC,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjD;AAID,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEnE;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAEnE;AAED,eAAO,MAAM,aAAa,EAAE,QA6U3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OA+P1B,CAAC"}
1
+ {"version":3,"file":"builtin-schema.d.ts","sourceRoot":"","sources":["../../src/builtin-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AAEtC,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjD;AAID,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEnE;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAEnE;AAED,eAAO,MAAM,aAAa,EAAE,QA6U3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAsN1B,CAAC"}
@@ -247,9 +247,9 @@ const builtInShapes = {
247
247
  required: ['filename', 'path']
248
248
  }
249
249
  },
250
- TsStaticSite: {
250
+ TSStaticSite: {
251
251
  id: 'SITE',
252
- name: 'TsStaticSite',
252
+ name: 'TSStaticSite',
253
253
  title: 'Static Site',
254
254
  model: {
255
255
  type: 'multiple'
@@ -330,7 +330,7 @@ const builtInShapes = {
330
330
  title: 'Environment Variables',
331
331
  '@l10n': false,
332
332
  items: {
333
- $ref: '#/shapes/TsStaticSiteEnvironmentVariables/schema'
333
+ $ref: '#/shapes/TSStaticSiteEnvironmentVariables/schema'
334
334
  },
335
335
  '@mapping': 'shapedb:TsStaticSite.9fj4UiNxY'
336
336
  },
@@ -339,7 +339,7 @@ const builtInShapes = {
339
339
  title: 'Publish Triggers',
340
340
  '@l10n': false,
341
341
  items: {
342
- $ref: '#/shapes/TsStaticSiteTriggers/schema'
342
+ $ref: '#/shapes/TSStaticSiteTriggers/schema'
343
343
  }
344
344
  },
345
345
  templateHash: {
@@ -352,9 +352,9 @@ const builtInShapes = {
352
352
  required: ['title', 'provider', 'destination']
353
353
  }
354
354
  },
355
- TsStaticSiteEnvironmentVariables: {
355
+ TSStaticSiteEnvironmentVariables: {
356
356
  id: '9fj4UiNxY',
357
- name: 'TsStaticSiteEnvironmentVariables',
357
+ name: 'TSStaticSiteEnvironmentVariables',
358
358
  title: 'Static Site EnvironmentVariables',
359
359
  schema: {
360
360
  type: 'object',
@@ -372,9 +372,9 @@ const builtInShapes = {
372
372
  }
373
373
  }
374
374
  },
375
- TsStaticSiteTriggers: {
376
- id: 'TsStaticSiteTriggers',
377
- name: 'TsStaticSiteTriggers',
375
+ TSStaticSiteTriggers: {
376
+ id: 'TSStaticSiteTriggers',
377
+ name: 'TSStaticSiteTriggers',
378
378
  title: 'Static Site Triggers',
379
379
  schema: {
380
380
  type: 'object',
@@ -398,84 +398,67 @@ const builtInForms = {
398
398
  order: ['title', 'description', 'caption', 'credit', 'filename', 'path', 'mimeType', 'sourceUrl', 'uploadStatus'],
399
399
  properties: {
400
400
  title: {
401
- widget: 'singleLineText',
402
- disabled: true
401
+ widget: 'singleLineText'
403
402
  },
404
403
  description: {
405
- widget: 'paragraphText',
406
- disabled: true
404
+ widget: 'paragraphText'
407
405
  },
408
406
  caption: {
409
- widget: 'wysiwygSingleLineText',
410
- disabled: true
407
+ widget: 'wysiwygSingleLineText'
411
408
  },
412
409
  credit: {
413
- widget: 'wysiwygSingleLineText',
414
- disabled: true
410
+ widget: 'wysiwygSingleLineText'
415
411
  },
416
412
  filename: {
417
- widget: 'singleLineText',
418
- disabled: true
413
+ widget: 'singleLineText'
419
414
  },
420
415
  path: {
421
- widget: 'singleLineText',
422
- disabled: true
416
+ widget: 'singleLineText'
423
417
  },
424
418
  mimeType: {
425
- widget: 'singleLineText',
426
- disabled: true
419
+ widget: 'singleLineText'
427
420
  },
428
421
  sourceUrl: {
429
- widget: 'singleLineText',
430
- disabled: true
422
+ widget: 'singleLineText'
431
423
  },
432
424
  uploadStatus: {
433
- widget: 'singleLineText',
434
- disabled: true
425
+ widget: 'singleLineText'
435
426
  }
436
427
  }
437
428
  }
438
429
  },
439
- TsStaticSite: {
430
+ TSStaticSite: {
440
431
  default: {
441
432
  order: ['title', 'provider', 'destination', 'idKey', 'secretKey', 'environmentVariables'],
442
433
  properties: {
443
434
  title: {
444
- widget: 'singleLineText',
445
- disabled: true
435
+ widget: 'singleLineText'
446
436
  },
447
437
  provider: {
448
- widget: 'dropdown',
449
- disabled: true
438
+ widget: 'dropdown'
450
439
  },
451
440
  destination: {
452
441
  widget: 'singleLineText',
453
- instructions: 'Deployment Bucket or FTP Host',
454
- disabled: true
442
+ instructions: 'Deployment Bucket or FTP Host'
455
443
  },
456
444
  idKey: {
457
445
  widget: 'singleLineText',
458
- instructions: 'AWS Access Key ID or Google Cloud Storage Client Email or FTP Username',
459
- disabled: true
446
+ instructions: 'AWS Access Key ID or Google Cloud Storage Client Email or FTP Username'
460
447
  },
461
448
  secretKey: {
462
449
  widget: 'sensitiveField',
463
450
  instructions: 'AWS Secret Access Key or Google Cloud Storage Private Key or FTP Password',
464
- multiline: true,
465
- disabled: true
451
+ multiline: true
466
452
  },
467
453
  environmentVariables: {
468
454
  widget: 'repeater',
469
455
  order: ['name', 'value'],
470
- disabled: true,
471
456
  properties: {
472
457
  name: {
473
- widget: 'singleLineText',
474
- disabled: true
458
+ widget: 'singleLineText'
475
459
  },
476
460
  value: {
477
- widget: 'singleLineText',
478
- disabled: true
461
+ widget: 'singleLineText'
479
462
  }
480
463
  }
481
464
  }
@@ -485,16 +468,13 @@ const builtInForms = {
485
468
  order: ['title', 'provider', 'baseUrl'],
486
469
  properties: {
487
470
  title: {
488
- widget: 'singleLineText',
489
- disabled: true
471
+ widget: 'singleLineText'
490
472
  },
491
473
  provider: {
492
- widget: 'dropdown',
493
- disabled: true
474
+ widget: 'dropdown'
494
475
  },
495
476
  baseUrl: {
496
- widget: 'singleLineText',
497
- disabled: true
477
+ widget: 'singleLineText'
498
478
  }
499
479
  }
500
480
  },
@@ -504,31 +484,25 @@ const builtInForms = {
504
484
  environmentVariables: {
505
485
  widget: 'repeater',
506
486
  order: ['name', 'value'],
507
- disabled: true,
508
487
  properties: {
509
488
  name: {
510
- widget: 'singleLineText',
511
- disabled: true
489
+ widget: 'singleLineText'
512
490
  },
513
491
  value: {
514
- widget: 'singleLineText',
515
- disabled: true
492
+ widget: 'singleLineText'
516
493
  }
517
494
  }
518
495
  },
519
496
  triggers: {
520
497
  widget: 'repeater',
521
498
  order: ['contentTypeId', 'status'],
522
- disabled: true,
523
499
  preview: 'siteTriggerPreview',
524
500
  properties: {
525
501
  contentTypeId: {
526
- widget: 'dropdown',
527
- disabled: true
502
+ widget: 'dropdown'
528
503
  },
529
504
  status: {
530
- widget: 'dropdown',
531
- disabled: true
505
+ widget: 'dropdown'
532
506
  }
533
507
  }
534
508
  }
@@ -539,24 +513,20 @@ const builtInForms = {
539
513
  properties: {
540
514
  destination: {
541
515
  widget: 'singleLineText',
542
- instructions: 'Deployment Bucket Name',
543
- disabled: true
516
+ instructions: 'Deployment Bucket Name'
544
517
  },
545
518
  idKey: {
546
519
  widget: 'singleLineText',
547
- instructions: 'AWS Access Key ID',
548
- disabled: true
520
+ instructions: 'AWS Access Key ID'
549
521
  },
550
522
  secretKey: {
551
523
  widget: 'sensitiveField',
552
524
  instructions: 'AWS Secret Access Key',
553
- multiline: true,
554
- disabled: true
525
+ multiline: true
555
526
  },
556
527
  privateAcl: {
557
528
  widget: 'checkbox',
558
- instructions: 'Disable public access to deployed files. This is useful when fronting S3 with CloudFront or with "Block All Public Access"',
559
- disabled: true
529
+ instructions: 'Disable public access to deployed files. This is useful when fronting S3 with CloudFront or with "Block All Public Access"'
560
530
  }
561
531
  }
562
532
  },
@@ -565,24 +535,20 @@ const builtInForms = {
565
535
  properties: {
566
536
  destination: {
567
537
  widget: 'singleLineText',
568
- instructions: 'Deployment Bucket Name',
569
- disabled: true
538
+ instructions: 'Deployment Bucket Name'
570
539
  },
571
540
  idKey: {
572
541
  widget: 'singleLineText',
573
- instructions: 'Google Cloud Storage Client Email',
574
- disabled: true
542
+ instructions: 'Google Cloud Storage Client Email'
575
543
  },
576
544
  secretKey: {
577
545
  widget: 'sensitiveField',
578
546
  instructions: 'Google Cloud Storage Private Key',
579
- multiline: true,
580
- disabled: true
547
+ multiline: true
581
548
  },
582
549
  privateAcl: {
583
550
  widget: 'checkbox',
584
- instructions: 'Disable public access to deployed files.',
585
- disabled: true
551
+ instructions: 'Disable public access to deployed files.'
586
552
  }
587
553
  }
588
554
  },
@@ -591,19 +557,16 @@ const builtInForms = {
591
557
  properties: {
592
558
  destination: {
593
559
  widget: 'singleLineText',
594
- instructions: 'FTP Host',
595
- disabled: true
560
+ instructions: 'FTP Host'
596
561
  },
597
562
  idKey: {
598
563
  widget: 'singleLineText',
599
- instructions: 'FTP Username',
600
- disabled: true
564
+ instructions: 'FTP Username'
601
565
  },
602
566
  secretKey: {
603
567
  widget: 'sensitiveField',
604
568
  instructions: 'FTP Password',
605
- multiline: true,
606
- disabled: true
569
+ multiline: true
607
570
  }
608
571
  }
609
572
  },
@@ -612,14 +575,12 @@ const builtInForms = {
612
575
  properties: {
613
576
  destination: {
614
577
  widget: 'singleLineText',
615
- instructions: 'Storage Account Name',
616
- disabled: true
578
+ instructions: 'Storage Account Name'
617
579
  },
618
580
  secretKey: {
619
581
  widget: 'sensitiveField',
620
582
  instructions: 'Access key',
621
- multiline: true,
622
- disabled: true
583
+ multiline: true
623
584
  }
624
585
  }
625
586
  },
@@ -629,8 +590,7 @@ const builtInForms = {
629
590
  destination: {
630
591
  widget: 'publishTargets',
631
592
  itemTemplate: 'siteDropdownItem',
632
- instructions: 'Choose existing or create a new site.',
633
- disabled: true
593
+ instructions: 'Choose existing or create a new site.'
634
594
  }
635
595
  }
636
596
  },
@@ -640,8 +600,7 @@ const builtInForms = {
640
600
  destination: {
641
601
  widget: 'publishTargets',
642
602
  itemTemplate: 'siteDropdownItem',
643
- instructions: 'Choose existing or create a new project.',
644
- disabled: true
603
+ instructions: 'Choose existing or create a new project.'
645
604
  }
646
605
  }
647
606
  }
@@ -480,7 +480,7 @@ function applyBuiltinPropertiesToShape(projectSchema, shape) {
480
480
  } // Dependencies of these built-in shapes are automatically added by getBuiltinsUsed
481
481
 
482
482
 
483
- const requiredBuiltinShapes = ['Asset', 'TSRelationship', 'TsStaticSite', 'TSUser'];
483
+ const requiredBuiltinShapes = ['Asset', 'TSRelationship', 'TSStaticSite', 'TSUser'];
484
484
  /**
485
485
  * Get all built-in shapes that are depended on by the given project schema.
486
486
  * Required built-in shapes are always included.
@@ -19,7 +19,7 @@ export declare const TSSearchSortInput: Shape;
19
19
  export declare const commonSearchProps: Record<string, PropertySchema>;
20
20
  export declare const localeProps: ObjectSchema;
21
21
  export declare const termsProps: ObjectSchema;
22
- export declare const ContentStructureInput: Shape;
22
+ export declare const TSContentStructureInput: Shape;
23
23
  export declare function getPaginatedListShape(context: unknown, shape: Shape): ResolvedTemplate;
24
24
  export declare function getSearchResultsShape(context: unknown, shape: Shape): ResolvedTemplate;
25
25
  export declare function getIDQueryArgs(templateName: string): (context: unknown, shape: Shape) => ResolvedTemplate;
@@ -1 +1 @@
1
- {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/template-shapes/templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAiB,cAAc,EAAE,KAAK,EAAc,MAAM,mBAAmB,CAAC;AACvG,OAAO,KAAK,EAAC,gBAAgB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAC,aAAa,EA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,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,gBAAgB,CAetF;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,gBAAgB,CAmBtF;AAsBD,wBAAgB,cAAc,CAAC,YAAY,EAAE,MAAM,aAChC,OAAO,SAAS,KAAK,KAAG,gBAAgB,CAU1D;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,aAAa,eACxC,MAAM,YAG1B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAM3D;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvD;AA2BD;;GAEG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,uBAM9C,eAAe,SAAS,KAAK,KAAG,gBAAgB,CA4E1E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,aAAa,aACtC,OAAO,SAAS,KAAK,KAAG,gBAAgB,CAiB1D;AAED,eAAO,MAAM,gBAAgB,EAAE,YAwB9B,CAAC;AAuBF,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,aAC5D,eAAe,SAAS,KAAK,KAAG,gBAAgB,CA0BlE"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.commonSearchProps = exports.commonSearchArgs = exports.UpdateResult = exports.UpdateArgs = exports.TSSearchSortInput = exports.TSSearchArgs = exports.TSListArgs = exports.TSGetSingletonArgs = exports.TSGetArgs = exports.SearchResults = exports.PaginatedList = exports.DuplicateResult = exports.DuplicateArgs = exports.DeleteResult = exports.DeleteArgs = exports.CreateResult = exports.CreateArgs = exports.ContentStructureInput = void 0;
6
+ exports.commonSearchProps = exports.commonSearchArgs = exports.UpdateResult = exports.UpdateArgs = exports.TSSearchSortInput = exports.TSSearchArgs = exports.TSListArgs = exports.TSGetSingletonArgs = exports.TSGetArgs = exports.TSContentStructureInput = exports.SearchResults = exports.PaginatedList = exports.DuplicateResult = exports.DuplicateArgs = exports.DeleteResult = exports.DeleteArgs = exports.CreateResult = exports.CreateArgs = void 0;
7
7
  exports.getIDQueryArgs = getIDQueryArgs;
8
8
  exports.getInputShapeName = getInputShapeName;
9
9
  exports.getMutationArgs = getMutationArgs;
@@ -126,7 +126,7 @@ const termsProps = {
126
126
  }
127
127
  };
128
128
  exports.termsProps = termsProps;
129
- const ContentStructureInput = (0, _schemaUtil.createShape)('ContentStructureInput', {
129
+ const TSContentStructureInput = (0, _schemaUtil.createShape)('TSContentStructureInput', {
130
130
  type: 'object',
131
131
  properties: {
132
132
  path: {
@@ -145,7 +145,7 @@ const ContentStructureInput = (0, _schemaUtil.createShape)('ContentStructureInpu
145
145
  }, {
146
146
  description: 'Describes a structural update to an array of data.'
147
147
  });
148
- exports.ContentStructureInput = ContentStructureInput;
148
+ exports.TSContentStructureInput = TSContentStructureInput;
149
149
 
150
150
  function getPaginatedListShape(context, shape) {
151
151
  const shapeName = `${shape.name}${_migration.listTypePrefix}`;
@@ -203,7 +203,7 @@ const contentStructureFields = {
203
203
  structure: {
204
204
  type: 'array',
205
205
  items: {
206
- '@ref': 'local:ContentStructureInput'
206
+ '@ref': 'local:TSContentStructureInput'
207
207
  }
208
208
  }
209
209
  }
@@ -239,7 +239,9 @@ function getIDQueryArgs(templateName) {
239
239
 
240
240
  function getMutationInputShapeName(verb) {
241
241
  return shapeName => {
242
- return (0, _util.pascalCase)([verb, shapeName, 'input']);
242
+ return (0, _util.formatShapeName)([verb, shapeName, 'input'], {
243
+ shapeNameIndex: 1
244
+ });
243
245
  };
244
246
  }
245
247
  /**
@@ -248,7 +250,11 @@ function getMutationInputShapeName(verb) {
248
250
 
249
251
 
250
252
  function getInputShapeName(shapeName) {
251
- return shapeName === 'TSRelationship' ? shapeName : `${shapeName}Input`;
253
+ if (shapeName === 'TSRelationship') {
254
+ return shapeName;
255
+ }
256
+
257
+ return `${shapeName}Input`;
252
258
  }
253
259
 
254
260
  function getOutputShapeName(name) {
@@ -341,7 +347,7 @@ function getMutationArgs(templateName, verb) {
341
347
  return (0, _schemaUtil.createShape)(getInputShapeName(shapeName), rewriteRefs(projectSchema, (0, _createInputSchema.createInputSchema)(shape.schema), getInputShapeName));
342
348
  }), 'name')),
343
349
  ...(addStructure ? {
344
- ContentStructureInput
350
+ TSContentStructureInput
345
351
  } : {})
346
352
  }
347
353
  };
@@ -350,7 +356,9 @@ function getMutationArgs(templateName, verb) {
350
356
 
351
357
  function getMutationResultType(verb) {
352
358
  return (context, shape) => {
353
- const shapeName = (0, _util.pascalCase)([verb, shape.name, 'result']);
359
+ const shapeName = (0, _util.formatShapeName)([verb, shape.name, 'result'], {
360
+ shapeNameIndex: 1
361
+ });
354
362
  const result = verb === _types.TemplateVerbs.Delete ? {
355
363
  type: 'boolean'
356
364
  } : {
@@ -242,7 +242,7 @@ function truncateNames(names) {
242
242
  function getRelationshipShapeName(refs) {
243
243
  return refs.map(ref => {
244
244
  const shapeName = ref.split(':')[1];
245
- return (0, _util.pascalCase)(shapeName);
245
+ return (0, _util.formatShapeName)(shapeName);
246
246
  }).sort().join('');
247
247
  }
248
248
 
@@ -287,7 +287,7 @@ function getTypeName(name, prop, shapeName, context) {
287
287
 
288
288
  if (type === 'object' || type === 'array') {
289
289
  const prefix = `TS${relationshipDepth >= MAX_RELATIONSHIP_DEPTH ? 'Shallow' : ''}Where`;
290
- const fieldName = `${conflictingProperties !== null && conflictingProperties !== void 0 && conflictingProperties.has(name) ? '_' : ''}${(0, _util.pascalCase)(name)}`;
290
+ const fieldName = `${conflictingProperties !== null && conflictingProperties !== void 0 && conflictingProperties.has(name) ? '_' : ''}${(0, _util.formatShapeName)(name)}`;
291
291
  const refItem = (0, _refs.getRefOrItemsRef)(projectSchema, prop);
292
292
  const suffix = refItem ? (0, _refs.refItemToShapeName)(refItem) : `${shapeName}${fieldName}`;
293
293
  return `${prefix}${suffix}`;