@takeshape/schema 10.2.23 → 10.3.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.
- package/dist/api-version.js +2 -4
- package/dist/builtin-schema.js +4 -7
- package/dist/migration/index.js +2 -4
- package/dist/migration/to/v3.0.0.js +1 -2
- package/dist/migration/to/v3.1.0.js +1 -2
- package/dist/migration/to/v3.10.0.js +1 -2
- package/dist/migration/to/v3.11.0.js +1 -2
- package/dist/migration/to/v3.12.0.js +1 -2
- package/dist/migration/to/v3.12.1.js +1 -2
- package/dist/migration/to/v3.12.2.js +1 -2
- package/dist/migration/to/v3.12.3.js +1 -2
- package/dist/migration/to/v3.13.0.js +1 -2
- package/dist/migration/to/v3.14.0.js +1 -2
- package/dist/migration/to/v3.15.0.js +1 -2
- package/dist/migration/to/v3.16.0.js +1 -2
- package/dist/migration/to/v3.17.0.js +1 -2
- package/dist/migration/to/v3.17.1.js +1 -2
- package/dist/migration/to/v3.18.0.js +1 -2
- package/dist/migration/to/v3.18.1.js +1 -2
- package/dist/migration/to/v3.18.2.js +1 -2
- package/dist/migration/to/v3.19.0.js +1 -2
- package/dist/migration/to/v3.2.0.js +1 -2
- package/dist/migration/to/v3.20.0.js +1 -2
- package/dist/migration/to/v3.21.0.js +1 -2
- package/dist/migration/to/v3.22.0.js +1 -2
- package/dist/migration/to/v3.23.0.js +1 -2
- package/dist/migration/to/v3.24.0.js +1 -2
- package/dist/migration/to/v3.25.0.js +1 -2
- package/dist/migration/to/v3.26.0.js +1 -2
- package/dist/migration/to/v3.27.0.js +1 -2
- package/dist/migration/to/v3.28.0.js +1 -2
- package/dist/migration/to/v3.29.0.js +1 -2
- package/dist/migration/to/v3.3.0.js +1 -2
- package/dist/migration/to/v3.30.0.js +1 -2
- package/dist/migration/to/v3.31.0.js +1 -2
- package/dist/migration/to/v3.32.0.js +1 -2
- package/dist/migration/to/v3.33.0.js +1 -2
- package/dist/migration/to/v3.34.0.js +1 -2
- package/dist/migration/to/v3.35.0.js +1 -2
- package/dist/migration/to/v3.36.0.js +1 -2
- package/dist/migration/to/v3.37.0.js +1 -2
- package/dist/migration/to/v3.38.0.js +1 -2
- package/dist/migration/to/v3.39.0.js +1 -2
- package/dist/migration/to/v3.4.0.js +1 -2
- package/dist/migration/to/v3.5.0.js +1 -2
- package/dist/migration/to/v3.5.1.js +1 -2
- package/dist/migration/to/v3.6.0.js +1 -2
- package/dist/migration/to/v3.7.0.js +1 -2
- package/dist/migration/to/v3.8.0.js +1 -2
- package/dist/migration/to/v3.9.0.js +1 -2
- package/dist/project-schema/index.js +50 -100
- package/dist/scalars.js +1 -2
- package/dist/schema-util.js +12 -24
- package/dist/schemas/index.js +2 -4
- package/dist/taxonomies.js +3 -5
- package/dist/template-shapes/templates.d.ts.map +1 -1
- package/dist/template-shapes/templates.js +24 -41
- package/dist/template-shapes/types.js +2 -3
- package/dist/template-shapes/where.js +5 -11
- package/dist/types/types.js +5 -9
- package/dist/unions.js +2 -4
- package/dist/util/api-indexing.js +2 -4
- package/dist/versions.js +3 -6
- package/dist/workflows.js +1 -2
- package/es/layers/type-utils.js +1 -0
- package/es/services.js +3 -0
- package/es/template-shapes/templates.js +5 -2
- package/es/template-shapes/where.js +0 -1
- package/es/types/types.js +4 -0
- package/package.json +6 -6
package/dist/api-version.js
CHANGED
|
@@ -21,7 +21,5 @@ const createVersionPredicate = (featureVersion, comparison) => {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
exports.createVersionPredicate = createVersionPredicate;
|
|
24
|
-
const workflowsEnabled = createVersionPredicate('2.0.0', _gte.default);
|
|
25
|
-
exports.
|
|
26
|
-
const whereClauseEnabled = createVersionPredicate('2.0.0', _gte.default);
|
|
27
|
-
exports.whereClauseEnabled = whereClauseEnabled;
|
|
24
|
+
const workflowsEnabled = exports.workflowsEnabled = createVersionPredicate('2.0.0', _gte.default);
|
|
25
|
+
const whereClauseEnabled = exports.whereClauseEnabled = createVersionPredicate('2.0.0', _gte.default);
|
package/dist/builtin-schema.js
CHANGED
|
@@ -18,14 +18,13 @@ function getAssetS3Path(content) {
|
|
|
18
18
|
function setAssetS3Path(content, path) {
|
|
19
19
|
content[ASSET_PATH] = path;
|
|
20
20
|
}
|
|
21
|
-
const jsonShape = {
|
|
21
|
+
const jsonShape = exports.jsonShape = {
|
|
22
22
|
id: 'JSON',
|
|
23
23
|
name: 'JSON',
|
|
24
24
|
title: 'JSON',
|
|
25
25
|
schema: {}
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const builtInShapes = {
|
|
27
|
+
const builtInShapes = exports.builtInShapes = {
|
|
29
28
|
JSON: jsonShape,
|
|
30
29
|
TSRelationship: {
|
|
31
30
|
id: 'TSRelationship',
|
|
@@ -395,8 +394,7 @@ const builtInShapes = {
|
|
|
395
394
|
}
|
|
396
395
|
}
|
|
397
396
|
};
|
|
398
|
-
exports.
|
|
399
|
-
const builtInForms = {
|
|
397
|
+
const builtInForms = exports.builtInForms = {
|
|
400
398
|
Asset: {
|
|
401
399
|
default: {
|
|
402
400
|
order: ['title', 'description', 'caption', 'credit', 'filename', 'path', 'mimeType', 'sourceUrl', 'uploadStatus'],
|
|
@@ -609,5 +607,4 @@ const builtInForms = {
|
|
|
609
607
|
}
|
|
610
608
|
}
|
|
611
609
|
}
|
|
612
|
-
};
|
|
613
|
-
exports.builtInForms = builtInForms;
|
|
610
|
+
};
|
package/dist/migration/index.js
CHANGED
|
@@ -68,7 +68,7 @@ Object.keys(_utils).forEach(function (key) {
|
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
71
|
-
const migrateTo = {
|
|
71
|
+
const migrateTo = exports.migrateTo = {
|
|
72
72
|
'v3.0.0': _v.default,
|
|
73
73
|
'v3.1.0': _v2.default,
|
|
74
74
|
'v3.2.0': _v3.default,
|
|
@@ -117,6 +117,4 @@ const migrateTo = {
|
|
|
117
117
|
'v3.38.0': _v46.default,
|
|
118
118
|
'v3.39.0': _v47.default
|
|
119
119
|
};
|
|
120
|
-
exports.
|
|
121
|
-
const listTypePrefix = 'PaginatedList';
|
|
122
|
-
exports.listTypePrefix = listTypePrefix;
|
|
120
|
+
const listTypePrefix = exports.listTypePrefix = 'PaginatedList';
|
|
@@ -673,103 +673,53 @@ function createVersionPredicate(expectedVersion) {
|
|
|
673
673
|
return Boolean(expectedVersion && schemaVersion && expectedVersion === schemaVersion);
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
const isProjectSchemaJSONV1_0_0 = createVersionPredicate('1.0.0');
|
|
677
|
-
exports.
|
|
678
|
-
const
|
|
679
|
-
exports.
|
|
680
|
-
const
|
|
681
|
-
exports.
|
|
682
|
-
const
|
|
683
|
-
exports.
|
|
684
|
-
const
|
|
685
|
-
exports.
|
|
686
|
-
const
|
|
687
|
-
exports.
|
|
688
|
-
const
|
|
689
|
-
exports.
|
|
690
|
-
const
|
|
691
|
-
exports.
|
|
692
|
-
const
|
|
693
|
-
exports.
|
|
694
|
-
const
|
|
695
|
-
exports.
|
|
696
|
-
const
|
|
697
|
-
exports.
|
|
698
|
-
const
|
|
699
|
-
exports.
|
|
700
|
-
const
|
|
701
|
-
exports.
|
|
702
|
-
const
|
|
703
|
-
exports.
|
|
704
|
-
const
|
|
705
|
-
exports.
|
|
706
|
-
const
|
|
707
|
-
exports.
|
|
708
|
-
const
|
|
709
|
-
exports.
|
|
710
|
-
const
|
|
711
|
-
exports.
|
|
712
|
-
const
|
|
713
|
-
exports.
|
|
714
|
-
const
|
|
715
|
-
exports.
|
|
716
|
-
const
|
|
717
|
-
exports.
|
|
718
|
-
const
|
|
719
|
-
exports.
|
|
720
|
-
const
|
|
721
|
-
exports.
|
|
722
|
-
const
|
|
723
|
-
exports.
|
|
724
|
-
const
|
|
725
|
-
exports.
|
|
726
|
-
const isProjectSchemaJSONV3_18_1 = createVersionPredicate('3.18.1');
|
|
727
|
-
exports.isProjectSchemaJSONV3_18_1 = isProjectSchemaJSONV3_18_1;
|
|
728
|
-
const isProjectSchemaJSONV3_18_2 = createVersionPredicate('3.18.2');
|
|
729
|
-
exports.isProjectSchemaJSONV3_18_2 = isProjectSchemaJSONV3_18_2;
|
|
730
|
-
const isProjectSchemaJSONV3_19_0 = createVersionPredicate('3.19.0');
|
|
731
|
-
exports.isProjectSchemaJSONV3_19_0 = isProjectSchemaJSONV3_19_0;
|
|
732
|
-
const isProjectSchemaJSONV3_20_0 = createVersionPredicate('3.20.0');
|
|
733
|
-
exports.isProjectSchemaJSONV3_20_0 = isProjectSchemaJSONV3_20_0;
|
|
734
|
-
const isProjectSchemaJSONV3_21_0 = createVersionPredicate('3.21.0');
|
|
735
|
-
exports.isProjectSchemaJSONV3_21_0 = isProjectSchemaJSONV3_21_0;
|
|
736
|
-
const isProjectSchemaJSONV3_22_0 = createVersionPredicate('3.22.0');
|
|
737
|
-
exports.isProjectSchemaJSONV3_22_0 = isProjectSchemaJSONV3_22_0;
|
|
738
|
-
const isProjectSchemaJSONV3_23_0 = createVersionPredicate('3.23.0');
|
|
739
|
-
exports.isProjectSchemaJSONV3_23_0 = isProjectSchemaJSONV3_23_0;
|
|
740
|
-
const isProjectSchemaJSONV3_24_0 = createVersionPredicate('3.24.0');
|
|
741
|
-
exports.isProjectSchemaJSONV3_24_0 = isProjectSchemaJSONV3_24_0;
|
|
742
|
-
const isProjectSchemaJSONV3_25_0 = createVersionPredicate('3.25.0');
|
|
743
|
-
exports.isProjectSchemaJSONV3_25_0 = isProjectSchemaJSONV3_25_0;
|
|
744
|
-
const isProjectSchemaJSONV3_26_0 = createVersionPredicate('3.26.0');
|
|
745
|
-
exports.isProjectSchemaJSONV3_26_0 = isProjectSchemaJSONV3_26_0;
|
|
746
|
-
const isProjectSchemaJSONV3_27_0 = createVersionPredicate('3.27.0');
|
|
747
|
-
exports.isProjectSchemaJSONV3_27_0 = isProjectSchemaJSONV3_27_0;
|
|
748
|
-
const isProjectSchemaJSONV3_28_0 = createVersionPredicate('3.28.0');
|
|
749
|
-
exports.isProjectSchemaJSONV3_28_0 = isProjectSchemaJSONV3_28_0;
|
|
750
|
-
const isProjectSchemaJSONV3_29_0 = createVersionPredicate('3.29.0');
|
|
751
|
-
exports.isProjectSchemaJSONV3_29_0 = isProjectSchemaJSONV3_29_0;
|
|
752
|
-
const isProjectSchemaJSONV3_30_0 = createVersionPredicate('3.30.0');
|
|
753
|
-
exports.isProjectSchemaJSONV3_30_0 = isProjectSchemaJSONV3_30_0;
|
|
754
|
-
const isProjectSchemaJSONV3_31_0 = createVersionPredicate('3.31.0');
|
|
755
|
-
exports.isProjectSchemaJSONV3_31_0 = isProjectSchemaJSONV3_31_0;
|
|
756
|
-
const isProjectSchemaJSONV3_32_0 = createVersionPredicate('3.32.0');
|
|
757
|
-
exports.isProjectSchemaJSONV3_32_0 = isProjectSchemaJSONV3_32_0;
|
|
758
|
-
const isProjectSchemaJSONV3_33_0 = createVersionPredicate('3.33.0');
|
|
759
|
-
exports.isProjectSchemaJSONV3_33_0 = isProjectSchemaJSONV3_33_0;
|
|
760
|
-
const isProjectSchemaJSONV3_34_0 = createVersionPredicate('3.34.0');
|
|
761
|
-
exports.isProjectSchemaJSONV3_34_0 = isProjectSchemaJSONV3_34_0;
|
|
762
|
-
const isProjectSchemaJSONV3_35_0 = createVersionPredicate('3.35.0');
|
|
763
|
-
exports.isProjectSchemaJSONV3_35_0 = isProjectSchemaJSONV3_35_0;
|
|
764
|
-
const isProjectSchemaJSONV3_36_0 = createVersionPredicate('3.36.0');
|
|
765
|
-
exports.isProjectSchemaJSONV3_36_0 = isProjectSchemaJSONV3_36_0;
|
|
766
|
-
const isProjectSchemaJSONV3_37_0 = createVersionPredicate('3.37.0');
|
|
767
|
-
exports.isProjectSchemaJSONV3_37_0 = isProjectSchemaJSONV3_37_0;
|
|
768
|
-
const isProjectSchemaJSONV3_38_0 = createVersionPredicate('3.38.0');
|
|
769
|
-
exports.isProjectSchemaJSONV3_38_0 = isProjectSchemaJSONV3_38_0;
|
|
770
|
-
const isProjectSchemaJSONV3_39_0 = createVersionPredicate('3.39.0');
|
|
771
|
-
exports.isProjectSchemaJSONV3_39_0 = isProjectSchemaJSONV3_39_0;
|
|
772
|
-
const isLatestProjectSchemaJSON = createVersionPredicate('3.39.0');
|
|
773
|
-
exports.isLatestProjectSchemaJSON = isLatestProjectSchemaJSON;
|
|
774
|
-
const isProjectSchemaJSONV4_0_0 = createVersionPredicate('4.0.0');
|
|
775
|
-
exports.isProjectSchemaJSONV4_0_0 = isProjectSchemaJSONV4_0_0;
|
|
676
|
+
const isProjectSchemaJSONV1_0_0 = exports.isProjectSchemaJSONV1_0_0 = createVersionPredicate('1.0.0');
|
|
677
|
+
const isProjectSchemaJSONV3_0_0 = exports.isProjectSchemaJSONV3_0_0 = createVersionPredicate('3.0.0');
|
|
678
|
+
const isProjectSchemaJSONV3_1_0 = exports.isProjectSchemaJSONV3_1_0 = createVersionPredicate('3.1.0');
|
|
679
|
+
const isProjectSchemaJSONV3_2_0 = exports.isProjectSchemaJSONV3_2_0 = createVersionPredicate('3.2.0');
|
|
680
|
+
const isProjectSchemaJSONV3_3_0 = exports.isProjectSchemaJSONV3_3_0 = createVersionPredicate('3.3.0');
|
|
681
|
+
const isProjectSchemaJSONV3_4_0 = exports.isProjectSchemaJSONV3_4_0 = createVersionPredicate('3.4.0');
|
|
682
|
+
const isProjectSchemaJSONV3_5_0 = exports.isProjectSchemaJSONV3_5_0 = createVersionPredicate('3.5.0');
|
|
683
|
+
const isProjectSchemaJSONV3_5_1 = exports.isProjectSchemaJSONV3_5_1 = createVersionPredicate('3.5.1');
|
|
684
|
+
const isProjectSchemaJSONV3_6_0 = exports.isProjectSchemaJSONV3_6_0 = createVersionPredicate('3.6.0');
|
|
685
|
+
const isProjectSchemaJSONV3_7_0 = exports.isProjectSchemaJSONV3_7_0 = createVersionPredicate('3.7.0');
|
|
686
|
+
const isProjectSchemaJSONV3_8_0 = exports.isProjectSchemaJSONV3_8_0 = createVersionPredicate('3.8.0');
|
|
687
|
+
const isProjectSchemaJSONV3_9_0 = exports.isProjectSchemaJSONV3_9_0 = createVersionPredicate('3.9.0');
|
|
688
|
+
const isProjectSchemaJSONV3_10_0 = exports.isProjectSchemaJSONV3_10_0 = createVersionPredicate('3.10.0');
|
|
689
|
+
const isProjectSchemaJSONV3_11_0 = exports.isProjectSchemaJSONV3_11_0 = createVersionPredicate('3.11.0');
|
|
690
|
+
const isProjectSchemaJSONV3_12_0 = exports.isProjectSchemaJSONV3_12_0 = createVersionPredicate('3.12.0');
|
|
691
|
+
const isProjectSchemaJSONV3_12_1 = exports.isProjectSchemaJSONV3_12_1 = createVersionPredicate('3.12.1');
|
|
692
|
+
const isProjectSchemaJSONV3_12_2 = exports.isProjectSchemaJSONV3_12_2 = createVersionPredicate('3.12.2');
|
|
693
|
+
const isProjectSchemaJSONV3_12_3 = exports.isProjectSchemaJSONV3_12_3 = createVersionPredicate('3.12.3');
|
|
694
|
+
const isProjectSchemaJSONV3_13_0 = exports.isProjectSchemaJSONV3_13_0 = createVersionPredicate('3.13.0');
|
|
695
|
+
const isProjectSchemaJSONV3_14_0 = exports.isProjectSchemaJSONV3_14_0 = createVersionPredicate('3.14.0');
|
|
696
|
+
const isProjectSchemaJSONV3_15_0 = exports.isProjectSchemaJSONV3_15_0 = createVersionPredicate('3.15.0');
|
|
697
|
+
const isProjectSchemaJSONV3_16_0 = exports.isProjectSchemaJSONV3_16_0 = createVersionPredicate('3.16.0');
|
|
698
|
+
const isProjectSchemaJSONV3_17_0 = exports.isProjectSchemaJSONV3_17_0 = createVersionPredicate('3.17.0');
|
|
699
|
+
const isProjectSchemaJSONV3_17_1 = exports.isProjectSchemaJSONV3_17_1 = createVersionPredicate('3.17.1');
|
|
700
|
+
const isProjectSchemaJSONV3_18_0 = exports.isProjectSchemaJSONV3_18_0 = createVersionPredicate('3.18.0');
|
|
701
|
+
const isProjectSchemaJSONV3_18_1 = exports.isProjectSchemaJSONV3_18_1 = createVersionPredicate('3.18.1');
|
|
702
|
+
const isProjectSchemaJSONV3_18_2 = exports.isProjectSchemaJSONV3_18_2 = createVersionPredicate('3.18.2');
|
|
703
|
+
const isProjectSchemaJSONV3_19_0 = exports.isProjectSchemaJSONV3_19_0 = createVersionPredicate('3.19.0');
|
|
704
|
+
const isProjectSchemaJSONV3_20_0 = exports.isProjectSchemaJSONV3_20_0 = createVersionPredicate('3.20.0');
|
|
705
|
+
const isProjectSchemaJSONV3_21_0 = exports.isProjectSchemaJSONV3_21_0 = createVersionPredicate('3.21.0');
|
|
706
|
+
const isProjectSchemaJSONV3_22_0 = exports.isProjectSchemaJSONV3_22_0 = createVersionPredicate('3.22.0');
|
|
707
|
+
const isProjectSchemaJSONV3_23_0 = exports.isProjectSchemaJSONV3_23_0 = createVersionPredicate('3.23.0');
|
|
708
|
+
const isProjectSchemaJSONV3_24_0 = exports.isProjectSchemaJSONV3_24_0 = createVersionPredicate('3.24.0');
|
|
709
|
+
const isProjectSchemaJSONV3_25_0 = exports.isProjectSchemaJSONV3_25_0 = createVersionPredicate('3.25.0');
|
|
710
|
+
const isProjectSchemaJSONV3_26_0 = exports.isProjectSchemaJSONV3_26_0 = createVersionPredicate('3.26.0');
|
|
711
|
+
const isProjectSchemaJSONV3_27_0 = exports.isProjectSchemaJSONV3_27_0 = createVersionPredicate('3.27.0');
|
|
712
|
+
const isProjectSchemaJSONV3_28_0 = exports.isProjectSchemaJSONV3_28_0 = createVersionPredicate('3.28.0');
|
|
713
|
+
const isProjectSchemaJSONV3_29_0 = exports.isProjectSchemaJSONV3_29_0 = createVersionPredicate('3.29.0');
|
|
714
|
+
const isProjectSchemaJSONV3_30_0 = exports.isProjectSchemaJSONV3_30_0 = createVersionPredicate('3.30.0');
|
|
715
|
+
const isProjectSchemaJSONV3_31_0 = exports.isProjectSchemaJSONV3_31_0 = createVersionPredicate('3.31.0');
|
|
716
|
+
const isProjectSchemaJSONV3_32_0 = exports.isProjectSchemaJSONV3_32_0 = createVersionPredicate('3.32.0');
|
|
717
|
+
const isProjectSchemaJSONV3_33_0 = exports.isProjectSchemaJSONV3_33_0 = createVersionPredicate('3.33.0');
|
|
718
|
+
const isProjectSchemaJSONV3_34_0 = exports.isProjectSchemaJSONV3_34_0 = createVersionPredicate('3.34.0');
|
|
719
|
+
const isProjectSchemaJSONV3_35_0 = exports.isProjectSchemaJSONV3_35_0 = createVersionPredicate('3.35.0');
|
|
720
|
+
const isProjectSchemaJSONV3_36_0 = exports.isProjectSchemaJSONV3_36_0 = createVersionPredicate('3.36.0');
|
|
721
|
+
const isProjectSchemaJSONV3_37_0 = exports.isProjectSchemaJSONV3_37_0 = createVersionPredicate('3.37.0');
|
|
722
|
+
const isProjectSchemaJSONV3_38_0 = exports.isProjectSchemaJSONV3_38_0 = createVersionPredicate('3.38.0');
|
|
723
|
+
const isProjectSchemaJSONV3_39_0 = exports.isProjectSchemaJSONV3_39_0 = createVersionPredicate('3.39.0');
|
|
724
|
+
const isLatestProjectSchemaJSON = exports.isLatestProjectSchemaJSON = createVersionPredicate('3.39.0');
|
|
725
|
+
const isProjectSchemaJSONV4_0_0 = exports.isProjectSchemaJSONV4_0_0 = createVersionPredicate('4.0.0');
|
package/dist/scalars.js
CHANGED
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.isScalar = isScalar;
|
|
7
7
|
exports.scalars = void 0;
|
|
8
|
-
const scalars = ['string', 'boolean', 'integer', 'number'];
|
|
9
|
-
exports.scalars = scalars;
|
|
8
|
+
const scalars = exports.scalars = ['string', 'boolean', 'integer', 'number'];
|
|
10
9
|
function isScalar(str) {
|
|
11
10
|
return Array.from(scalars).includes(str);
|
|
12
11
|
}
|