@aws-amplify/graphql-maps-to-transformer 1.2.0-category-split-test.2 → 2.1.0-beta.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.
package/CHANGELOG.md CHANGED
@@ -3,130 +3,185 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [1.2.0-category-split-test.2](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.2.0-category-split-test.1...@aws-amplify/graphql-maps-to-transformer@1.2.0-category-split-test.2) (2022-04-22)
6
+ # [2.1.0-beta.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@2.1.0-cdkv2.3...@aws-amplify/graphql-maps-to-transformer@2.1.0-beta.0) (2022-11-18)
7
7
 
8
8
  **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
9
9
 
10
+ # [2.1.0-cdkv2.3](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.35...@aws-amplify/graphql-maps-to-transformer@2.1.0-cdkv2.3) (2022-11-15)
10
11
 
12
+ ### Bug Fixes
11
13
 
14
+ - lock CDK v2 version ([#923](https://github.com/aws-amplify/amplify-category-api/issues/923)) ([2afe40c](https://github.com/aws-amplify/amplify-category-api/commit/2afe40cf13e7d1ee7db37988b9b3297768c7bd0a))
15
+ - preserve logical id patterns for dynamodb tables and search domain ([#894](https://github.com/aws-amplify/amplify-category-api/issues/894)) ([7530fc2](https://github.com/aws-amplify/amplify-category-api/commit/7530fc2e9254b621dc3782271318dd3f5c97d2b8))
12
16
 
17
+ ### Features
13
18
 
14
- # [1.2.0-category-split-test.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.2.0-category-split-test.0...@aws-amplify/graphql-maps-to-transformer@1.2.0-category-split-test.1) (2022-04-22)
15
-
16
- **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
19
+ - migrate auth, maps-to, relational, default value transformer to CDK v2 ([#875](https://github.com/aws-amplify/amplify-category-api/issues/875)) ([5c714a9](https://github.com/aws-amplify/amplify-category-api/commit/5c714a9a8436be343477574cb5523c23c96c9338))
20
+ - migrate index and model transformers to CDK v2 ([#860](https://github.com/aws-amplify/amplify-category-api/issues/860)) ([886ab6c](https://github.com/aws-amplify/amplify-category-api/commit/886ab6c1eb699f9a09f273c76b3c419c73004f9b))
17
21
 
22
+ # [2.1.0-cdkv2.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@2.1.0-cdkv2.1...@aws-amplify/graphql-maps-to-transformer@2.1.0-cdkv2.2) (2022-11-03)
18
23
 
24
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
19
25
 
26
+ # [2.1.0-cdkv2.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@2.1.0-cdkv2.0...@aws-amplify/graphql-maps-to-transformer@2.1.0-cdkv2.1) (2022-10-24)
20
27
 
28
+ ### Bug Fixes
21
29
 
22
- # 1.2.0-category-split-test.0 (2022-04-22)
30
+ - lock CDK v2 version ([#923](https://github.com/aws-amplify/amplify-category-api/issues/923)) ([2afe40c](https://github.com/aws-amplify/amplify-category-api/commit/2afe40cf13e7d1ee7db37988b9b3297768c7bd0a))
23
31
 
32
+ # [2.1.0-cdkv2.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.31...@aws-amplify/graphql-maps-to-transformer@2.1.0-cdkv2.0) (2022-10-24)
24
33
 
25
34
  ### Bug Fixes
26
35
 
27
- * **graphql:** include sort key(s) in many to many directive relation model ([#9580](https://github.com/aws-amplify/amplify-cli/issues/9580)) ([93ebf35](https://github.com/aws-amplify/amplify-cli/commit/93ebf3566992bff95f035f70fe27b4b1871e1d3d))
28
- * mapping lambda build script ([#9631](https://github.com/aws-amplify/amplify-cli/issues/9631)) ([63c09ad](https://github.com/aws-amplify/amplify-cli/commit/63c09add0e80b536dca3c9d51dd288889db3178e))
29
-
36
+ - preserve logical id patterns for dynamodb tables and search domain ([#894](https://github.com/aws-amplify/amplify-category-api/issues/894)) ([7530fc2](https://github.com/aws-amplify/amplify-category-api/commit/7530fc2e9254b621dc3782271318dd3f5c97d2b8))
30
37
 
31
38
  ### Features
32
39
 
33
- * `[@maps](https://github.com/maps)To` directive to enable renaming models while retaining data ([#9340](https://github.com/aws-amplify/amplify-cli/issues/9340)) ([aedf45d](https://github.com/aws-amplify/amplify-cli/commit/aedf45d9237812d71bb8b56164efe0222ad3d534))
40
+ - migrate auth, maps-to, relational, default value transformer to CDK v2 ([#875](https://github.com/aws-amplify/amplify-category-api/issues/875)) ([5c714a9](https://github.com/aws-amplify/amplify-category-api/commit/5c714a9a8436be343477574cb5523c23c96c9338))
41
+ - migrate index and model transformers to CDK v2 ([#860](https://github.com/aws-amplify/amplify-category-api/issues/860)) ([886ab6c](https://github.com/aws-amplify/amplify-category-api/commit/886ab6c1eb699f9a09f273c76b3c419c73004f9b))
34
42
 
43
+ ## [1.1.35](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.34...@aws-amplify/graphql-maps-to-transformer@1.1.35) (2022-11-08)
35
44
 
45
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
36
46
 
47
+ ## [1.1.34](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.33...@aws-amplify/graphql-maps-to-transformer@1.1.34) (2022-11-04)
37
48
 
49
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
38
50
 
39
- ## [1.1.12](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.11...@aws-amplify/graphql-maps-to-transformer@1.1.12) (2022-04-18)
51
+ ## [1.1.33](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.32...@aws-amplify/graphql-maps-to-transformer@1.1.33) (2022-10-26)
40
52
 
41
53
  **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
42
54
 
55
+ ## [1.1.32](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.31...@aws-amplify/graphql-maps-to-transformer@1.1.32) (2022-10-24)
43
56
 
57
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
44
58
 
59
+ ## [1.1.31](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.30...@aws-amplify/graphql-maps-to-transformer@1.1.31) (2022-10-04)
45
60
 
61
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
46
62
 
47
- ## [1.1.11](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.10...@aws-amplify/graphql-maps-to-transformer@1.1.11) (2022-04-07)
63
+ ## [1.1.30](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.29...@aws-amplify/graphql-maps-to-transformer@1.1.30) (2022-09-20)
64
+
65
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
66
+
67
+ ## [1.1.29](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.28...@aws-amplify/graphql-maps-to-transformer@1.1.29) (2022-09-14)
48
68
 
49
69
  **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
50
70
 
71
+ ## [1.1.28](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.27...@aws-amplify/graphql-maps-to-transformer@1.1.28) (2022-08-23)
51
72
 
73
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
52
74
 
75
+ ## [1.1.27](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.26...@aws-amplify/graphql-maps-to-transformer@1.1.27) (2022-08-18)
53
76
 
77
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
54
78
 
55
- ## [1.1.10](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.9...@aws-amplify/graphql-maps-to-transformer@1.1.10) (2022-03-23)
79
+ ## [1.1.26](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.25...@aws-amplify/graphql-maps-to-transformer@1.1.26) (2022-08-16)
56
80
 
81
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
57
82
 
58
- ### Bug Fixes
83
+ ## [1.1.25](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.24...@aws-amplify/graphql-maps-to-transformer@1.1.25) (2022-08-04)
59
84
 
60
- * **graphql:** include sort key(s) in many to many directive relation model ([#9580](https://github.com/aws-amplify/amplify-cli/issues/9580)) ([93ebf35](https://github.com/aws-amplify/amplify-cli/commit/93ebf3566992bff95f035f70fe27b4b1871e1d3d))
85
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
61
86
 
87
+ ## [1.1.24](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.23...@aws-amplify/graphql-maps-to-transformer@1.1.24) (2022-07-26)
62
88
 
89
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
63
90
 
91
+ ## [1.1.23](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.21...@aws-amplify/graphql-maps-to-transformer@1.1.23) (2022-07-20)
64
92
 
93
+ ### Bug Fixes
65
94
 
66
- ## [1.1.9](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.8...@aws-amplify/graphql-maps-to-transformer@1.1.9) (2022-03-17)
95
+ - use PK name in many to many link object ([a7a8692](https://github.com/aws-amplify/amplify-category-api/commit/a7a8692e9dba189c362443ead508e578ff6b6502))
96
+
97
+ ## [1.1.22](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.21...@aws-amplify/graphql-maps-to-transformer@1.1.22) (2022-07-14)
67
98
 
68
99
  **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
69
100
 
101
+ ## [1.1.21](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.20...@aws-amplify/graphql-maps-to-transformer@1.1.21) (2022-07-01)
70
102
 
103
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
71
104
 
105
+ ## [1.1.20](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.19...@aws-amplify/graphql-maps-to-transformer@1.1.20) (2022-06-23)
72
106
 
107
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
73
108
 
74
- ## [1.1.8](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.7...@aws-amplify/graphql-maps-to-transformer@1.1.8) (2022-03-07)
109
+ ## [1.1.19](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.18...@aws-amplify/graphql-maps-to-transformer@1.1.19) (2022-06-13)
75
110
 
76
111
  **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
77
112
 
113
+ ## [1.1.18](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.17...@aws-amplify/graphql-maps-to-transformer@1.1.18) (2022-06-10)
78
114
 
115
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
79
116
 
117
+ ## [1.1.17](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.14...@aws-amplify/graphql-maps-to-transformer@1.1.17) (2022-06-07)
80
118
 
119
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
81
120
 
82
- ## [1.1.7](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.6...@aws-amplify/graphql-maps-to-transformer@1.1.7) (2022-02-25)
121
+ ## [1.1.16](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@1.1.14...@aws-amplify/graphql-maps-to-transformer@1.1.16) (2022-05-31)
83
122
 
84
123
  **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
85
124
 
125
+ ## [1.1.15](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.14...@aws-amplify/graphql-maps-to-transformer@1.1.15) (2022-05-02)
86
126
 
127
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
87
128
 
129
+ ## [1.1.14](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.13...@aws-amplify/graphql-maps-to-transformer@1.1.14) (2022-04-29)
88
130
 
131
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
89
132
 
90
- ## [1.1.6](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.5...@aws-amplify/graphql-maps-to-transformer@1.1.6) (2022-02-15)
133
+ ## [1.1.13](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.12...@aws-amplify/graphql-maps-to-transformer@1.1.13) (2022-04-27)
91
134
 
92
135
  **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
93
136
 
137
+ ## [1.1.12](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.11...@aws-amplify/graphql-maps-to-transformer@1.1.12) (2022-04-18)
94
138
 
139
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
95
140
 
141
+ ## [1.1.11](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.10...@aws-amplify/graphql-maps-to-transformer@1.1.11) (2022-04-07)
96
142
 
143
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
97
144
 
98
- ## [1.1.5](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.1...@aws-amplify/graphql-maps-to-transformer@1.1.5) (2022-02-10)
145
+ ## [1.1.10](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.9...@aws-amplify/graphql-maps-to-transformer@1.1.10) (2022-03-23)
99
146
 
147
+ ### Bug Fixes
100
148
 
149
+ - **graphql:** include sort key(s) in many to many directive relation model ([#9580](https://github.com/aws-amplify/amplify-cli/issues/9580)) ([93ebf35](https://github.com/aws-amplify/amplify-cli/commit/93ebf3566992bff95f035f70fe27b4b1871e1d3d))
101
150
 
102
- ## 7.6.19 (2022-02-08)
151
+ ## [1.1.9](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.8...@aws-amplify/graphql-maps-to-transformer@1.1.9) (2022-03-17)
103
152
 
104
153
  **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
105
154
 
155
+ ## [1.1.8](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.7...@aws-amplify/graphql-maps-to-transformer@1.1.8) (2022-03-07)
106
156
 
157
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
107
158
 
159
+ ## [1.1.7](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.6...@aws-amplify/graphql-maps-to-transformer@1.1.7) (2022-02-25)
108
160
 
161
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
109
162
 
110
- ## [1.1.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.0...@aws-amplify/graphql-maps-to-transformer@1.1.1) (2022-02-03)
163
+ ## [1.1.6](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.5...@aws-amplify/graphql-maps-to-transformer@1.1.6) (2022-02-15)
111
164
 
112
165
  **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
113
166
 
167
+ ## [1.1.5](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.1...@aws-amplify/graphql-maps-to-transformer@1.1.5) (2022-02-10)
114
168
 
169
+ ## 7.6.19 (2022-02-08)
115
170
 
171
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
116
172
 
173
+ ## [1.1.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-maps-to-transformer@1.1.0...@aws-amplify/graphql-maps-to-transformer@1.1.1) (2022-02-03)
117
174
 
118
- # 1.1.0 (2022-01-31)
119
-
175
+ **Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
120
176
 
177
+ # 1.1.0 (2022-01-31)
121
178
 
122
179
  ## 7.6.14 (2022-01-28)
123
180
 
124
-
125
181
  ### Bug Fixes
126
182
 
127
- * mapping lambda build script ([#9631](https://github.com/aws-amplify/amplify-cli/issues/9631)) ([63c09ad](https://github.com/aws-amplify/amplify-cli/commit/63c09add0e80b536dca3c9d51dd288889db3178e))
128
-
183
+ - mapping lambda build script ([#9631](https://github.com/aws-amplify/amplify-cli/issues/9631)) ([63c09ad](https://github.com/aws-amplify/amplify-cli/commit/63c09add0e80b536dca3c9d51dd288889db3178e))
129
184
 
130
185
  ### Features
131
186
 
132
- * `[@maps](https://github.com/maps)To` directive to enable renaming models while retaining data ([#9340](https://github.com/aws-amplify/amplify-cli/issues/9340)) ([aedf45d](https://github.com/aws-amplify/amplify-cli/commit/aedf45d9237812d71bb8b56164efe0222ad3d534))
187
+ - `[@maps](https://github.com/maps)To` directive to enable renaming models while retaining data ([#9340](https://github.com/aws-amplify/amplify-cli/issues/9340)) ([aedf45d](https://github.com/aws-amplify/amplify-cli/commit/aedf45d9237812d71bb8b56164efe0222ad3d534))
package/LICENSE CHANGED
@@ -2,180 +2,180 @@
2
2
  Version 2.0, January 2004
3
3
  http://www.apache.org/licenses/
4
4
 
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
179
 
180
180
  To apply the Apache License to your work, attach the following
181
181
  boilerplate notice, with the fields enclosed by brackets "{}"
@@ -186,16 +186,16 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2017 - 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
189
+ Copyright 2017 - 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
190
190
 
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
194
 
195
195
  http://www.apache.org/licenses/LICENSE-2.0
196
196
 
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
Binary file
@@ -1,4 +1,4 @@
1
1
  import { StackManagerProvider, TransformHostProvider } from '@aws-amplify/graphql-transformer-interfaces';
2
- import { LambdaDataSource } from '@aws-cdk/aws-appsync';
2
+ import { LambdaDataSource } from '@aws-cdk/aws-appsync-alpha';
3
3
  export declare const createMappingLambda: (host: TransformHostProvider, stackManager: StackManagerProvider) => LambdaDataSource;
4
4
  //# sourceMappingURL=field-mapping-lambda.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"field-mapping-lambda.d.ts","sourceRoot":"","sources":["../src/field-mapping-lambda.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAC1G,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAMxD,eAAO,MAAM,mBAAmB,SAAU,qBAAqB,gBAAgB,oBAAoB,qBAqDlG,CAAC"}
1
+ {"version":3,"file":"field-mapping-lambda.d.ts","sourceRoot":"","sources":["../src/field-mapping-lambda.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAC1G,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAM9D,eAAO,MAAM,mBAAmB,SAAU,qBAAqB,gBAAgB,oBAAoB,qBAqDlG,CAAC"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -20,9 +24,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
20
24
  };
21
25
  Object.defineProperty(exports, "__esModule", { value: true });
22
26
  exports.createMappingLambda = void 0;
23
- const lambda = __importStar(require("@aws-cdk/aws-lambda"));
24
- const iam = __importStar(require("@aws-cdk/aws-iam"));
25
- const cdk = __importStar(require("@aws-cdk/core"));
27
+ const lambda = __importStar(require("aws-cdk-lib/aws-lambda"));
28
+ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
29
+ const cdk = __importStar(require("aws-cdk-lib"));
26
30
  const path = __importStar(require("path"));
27
31
  const createMappingLambda = (host, stackManager) => {
28
32
  const baseName = 'MapsToFieldMapping';
@@ -1 +1 @@
1
- {"version":3,"file":"field-mapping-lambda.js","sourceRoot":"","sources":["../src/field-mapping-lambda.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEA,4DAA8C;AAC9C,sDAAwC;AACxC,mDAAqC;AACrC,2CAA6B;AAEtB,MAAM,mBAAmB,GAAG,CAAC,IAA2B,EAAE,YAAkC,EAAE,EAAE;IACrG,MAAM,QAAQ,GAAG,oBAAoB,CAAC;IAGtC,MAAM,oBAAoB,GAAG,GAAG,QAAQ,kBAAkB,CAAC;IAC3D,MAAM,wBAAwB,GAAG,IAAI,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC1E,IAAI,wBAAwB,EAAE;QAC5B,OAAO,wBAA4C,CAAC;KACrD;IAGD,MAAM,KAAK,GAAG,YAAY,CAAC,WAAW,CAAC,GAAG,QAAQ,OAAO,CAAC,CAAC;IAG3D,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,QAAQ,YAAY,EAAE;QACxD,SAAS,EAAE,IAAI,GAAG,CAAC,gBAAgB,CAAC,sBAAsB,CAAC;KAC5D,CAAC,CAAC;IAGH,MAAM,aAAa,GAAG,GAAG,QAAQ,gBAAgB,CAAC;IAClD,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CACvC,aAAa,EACb,aAAa,aAAa,MAAM,EAChC,eAAe,EACf,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,oBAAoB,CAAC,EACpD,MAAM,CAAC,OAAO,CAAC,WAAW,EAC1B,SAAS,EACT,IAAI,EACJ,SAAS,EACT,SAAS,EACT,KAAK,CACN,CAAC;IAEF,IAAI,CAAC,kBAAkB,CACrB,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,QAAQ,qBAAqB,EAAE;QACtD,UAAU,EAAE;YACV,IAAI,GAAG,CAAC,eAAe,CA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G,QAAQ,gBAAgB,CAAC;IAClD,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CACvC,aAAa,EACb,aAAa,aAAa,MAAM,EAChC,eAAe,EACf,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,oBAAoB,CAAC,EACpD,MAAM,CAAC,OAAO,CAAC,WAAW,EAC1B,SAAS,EACT,IAAI,EACJ,SAAS,EACT,SAAS,EACT,KAAK,CACN,CAAC;IAEF,IAAI,CAAC,kBAAkB,CACrB,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,QAAQ,qBAAqB,EAAE;QACtD,UAAU,EAAE;YACV,IAAI,GAAG,CAAC,eAAe,CAAC;gBACtB,OAAO,EAAE,CAAC,qBAAqB,EAAE,sBAAsB,EAAE,mBAAmB,CAAC;gBAC7E,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK;gBACxB,SAAS,EAAE;oBACT,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,iGAAiG,EAAE;wBAC5G,QAAQ,EAAE,UAAU,CAAC,YAAY;qBAClC,CAAC;iBACH;aACF,CAAC;SACH;KACF,CAAC,CACH,CAAC;IAGF,MAAM,gBAAgB,GAAG,IAAI,CAAC,mBAAmB,CAAC,oBAAoB,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IAEtG,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AArDW,QAAA,mBAAmB,uBAqD9B"}
@@ -1,5 +1,5 @@
1
1
  import { TransformerResolverProvider, FieldMapEntry, ReadonlyArray } from '@aws-amplify/graphql-transformer-interfaces';
2
- import { LambdaDataSource } from '@aws-cdk/aws-appsync';
2
+ import { LambdaDataSource } from '@aws-cdk/aws-appsync-alpha';
3
3
  declare type AttachInputMappingSlotParams = {
4
4
  resolver: TransformerResolverProvider;
5
5
  resolverTypeName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"field-mapping-resolvers.d.ts","sourceRoot":"","sources":["../src/field-mapping-resolvers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACxH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAyBxD,aAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;CACxC,CAAC;AAMF,eAAO,MAAM,sBAAsB,gEAAiE,4BAA4B,KAAG,IAQlI,CAAC;AAEF,aAAK,+BAA+B,GAAG;IACrC,QAAQ,EAAE,cAAc,GAAG,YAAY,CAAC;IACxC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACvC,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAMF,eAAO,MAAM,yBAAyB,mFAOnC,+BAA+B,SAgBjC,CAAC;AAEF,aAAK,2CAA2C,GAAG;IACjD,QAAQ,EAAE,WAAW,GAAG,aAAa,CAAC;IACtC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACvC,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,wCAAwC,uFAOlD,2CAA2C,SAiD7C,CAAC"}
1
+ {"version":3,"file":"field-mapping-resolvers.d.ts","sourceRoot":"","sources":["../src/field-mapping-resolvers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACxH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAyB9D,aAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;CACxC,CAAC;AAMF,eAAO,MAAM,sBAAsB,gEAAiE,4BAA4B,KAAG,IAQlI,CAAC;AAEF,aAAK,+BAA+B,GAAG;IACrC,QAAQ,EAAE,cAAc,GAAG,YAAY,CAAC;IACxC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACvC,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAMF,eAAO,MAAM,yBAAyB,mFAOnC,+BAA+B,SAgBjC,CAAC;AAEF,aAAK,2CAA2C,GAAG;IACjD,QAAQ,EAAE,WAAW,GAAG,aAAa,CAAC;IACtC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACvC,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,wCAAwC,uFAOlD,2CAA2C,SAiD7C,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import { TransformerPluginBase } from '@aws-amplify/graphql-transformer-core';
2
- import { TransformerContextProvider, TransformerSchemaVisitStepContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
2
+ import { TransformerContextProvider, TransformerPreProcessContextProvider, TransformerSchemaVisitStepContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
3
3
  import { ObjectTypeDefinitionNode, DirectiveNode } from 'graphql';
4
4
  export declare class MapsToTransformer extends TransformerPluginBase {
5
5
  constructor();
6
6
  object: (definition: ObjectTypeDefinitionNode, directive: DirectiveNode, ctx: TransformerSchemaVisitStepContextProvider) => void;
7
+ preMutateSchema: (context: TransformerPreProcessContextProvider) => void;
7
8
  after: (context: TransformerContextProvider) => void;
8
9
  }
9
10
  //# sourceMappingURL=graphql-maps-to-transformer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-maps-to-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-maps-to-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAyB,MAAM,uCAAuC,CAAC;AACrG,OAAO,EACL,0BAA0B,EAE1B,yCAAyC,EAC1C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAwB,MAAM,SAAS,CAAC;AAUxF,qBAAa,iBAAkB,SAAQ,qBAAqB;;IAQ1D,MAAM,eAAgB,wBAAwB,aAAa,aAAa,OAAO,yCAAyC,UAyBtH;IAMF,KAAK,YAAa,0BAA0B,UAuD1C;CACH"}
1
+ {"version":3,"file":"graphql-maps-to-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-maps-to-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAyB,MAAM,uCAAuC,CAAC;AACrG,OAAO,EACL,0BAA0B,EACH,oCAAoC,EAC3D,yCAAyC,EAC1C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAA+D,MAAM,SAAS,CAAC;AAU/H,qBAAa,iBAAkB,SAAQ,qBAAqB;;IAQ1D,MAAM,eAAgB,wBAAwB,aAAa,aAAa,OAAO,yCAAyC,UAEtH;IAMF,eAAe,YAAa,oCAAoC,UAU/D;IAMD,KAAK,YAAa,0BAA0B,UAuD1C;CACH"}
@@ -14,25 +14,20 @@ class MapsToTransformer extends graphql_transformer_core_1.TransformerPluginBase
14
14
  constructor() {
15
15
  super(`amplify-maps-to-transformer`, directiveDefinition, graphql_transformer_interfaces_1.TransformerPluginType.GENERIC);
16
16
  this.object = (definition, directive, ctx) => {
17
+ updateTypeMapping(definition, directive, ctx.inputDocument, ctx.resourceHelper.setModelNameMapping);
18
+ };
19
+ this.preMutateSchema = (context) => {
17
20
  var _a, _b;
18
- const modelName = definition.name.value;
19
- const prevNameNode = (_a = directive.arguments) === null || _a === void 0 ? void 0 : _a.find(arg => arg.name.value === 'name');
20
- const hasModelDirective = !!((_b = definition.directives) === null || _b === void 0 ? void 0 : _b.find(directive => directive.name.value === 'model'));
21
- if (!hasModelDirective) {
22
- throw new graphql_transformer_core_1.InvalidDirectiveError(`@mapsTo can only be used on an @model type`);
23
- }
24
- if (!prevNameNode) {
25
- throw new graphql_transformer_core_1.InvalidDirectiveError(`name is required in @${directiveName} directive`);
26
- }
27
- if (prevNameNode.value.kind !== 'StringValue') {
28
- throw new graphql_transformer_core_1.InvalidDirectiveError(`A single string must be provided for "name" in @${directiveName} directive`);
29
- }
30
- const originalName = prevNameNode.value.value;
31
- const schemaHasConflictingModel = !!ctx.inputDocument.definitions.find(hasModelWithNamePredicate(originalName));
32
- if (schemaHasConflictingModel) {
33
- throw new graphql_transformer_core_1.InvalidDirectiveError(`Type ${modelName} cannot map to ${originalName} because ${originalName} is a model in the schema.`);
34
- }
35
- ctx.resourceHelper.setModelNameMapping(modelName, originalName);
21
+ (_b = (_a = context.inputDocument) === null || _a === void 0 ? void 0 : _a.definitions) === null || _b === void 0 ? void 0 : _b.forEach(def => {
22
+ var _a;
23
+ if (def.kind === 'ObjectTypeDefinition' || def.kind === 'ObjectTypeExtension') {
24
+ (_a = def === null || def === void 0 ? void 0 : def.directives) === null || _a === void 0 ? void 0 : _a.forEach(dir => {
25
+ if (dir.name.value === directiveName) {
26
+ updateTypeMapping(def, dir, context.inputDocument, context.schemaHelper.setTypeMapping);
27
+ }
28
+ });
29
+ }
30
+ });
36
31
  };
37
32
  this.after = (context) => {
38
33
  context.resourceHelper.getModelFieldMapKeys().forEach(modelName => {
@@ -94,5 +89,26 @@ class MapsToTransformer extends graphql_transformer_core_1.TransformerPluginBase
94
89
  }
95
90
  }
96
91
  exports.MapsToTransformer = MapsToTransformer;
92
+ const updateTypeMapping = (definition, directive, inputDocument, updateFunction) => {
93
+ var _a, _b;
94
+ const modelName = definition.name.value;
95
+ const prevNameNode = (_a = directive.arguments) === null || _a === void 0 ? void 0 : _a.find(arg => arg.name.value === 'name');
96
+ const hasModelDirective = !!((_b = definition.directives) === null || _b === void 0 ? void 0 : _b.find(directive => directive.name.value === 'model'));
97
+ if (!hasModelDirective) {
98
+ throw new graphql_transformer_core_1.InvalidDirectiveError(`@mapsTo can only be used on an @model type`);
99
+ }
100
+ if (!prevNameNode) {
101
+ throw new graphql_transformer_core_1.InvalidDirectiveError(`name is required in @${directiveName} directive`);
102
+ }
103
+ if (prevNameNode.value.kind !== 'StringValue') {
104
+ throw new graphql_transformer_core_1.InvalidDirectiveError(`A single string must be provided for "name" in @${directiveName} directive`);
105
+ }
106
+ const originalName = prevNameNode.value.value;
107
+ const schemaHasConflictingModel = !!inputDocument.definitions.find(hasModelWithNamePredicate(originalName));
108
+ if (schemaHasConflictingModel) {
109
+ throw new graphql_transformer_core_1.InvalidDirectiveError(`Type ${modelName} cannot map to ${originalName} because ${originalName} is a model in the schema.`);
110
+ }
111
+ updateFunction(modelName, originalName);
112
+ };
97
113
  const hasModelWithNamePredicate = (name) => (node) => { var _a; return node.kind === graphql_1.Kind.OBJECT_TYPE_DEFINITION && !!((_a = node.directives) === null || _a === void 0 ? void 0 : _a.find(dir => dir.name.value === 'model')) && node.name.value === name; };
98
114
  //# sourceMappingURL=graphql-maps-to-transformer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-maps-to-transformer.js","sourceRoot":"","sources":["../src/graphql-maps-to-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAqG;AACrG,gGAIqD;AACrD,qCAAwF;AACxF,iEAA6D;AAC7D,uEAAwI;AAExI,MA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KAAK,CAAC,KAAK,CAAC;IAE9C,MAAM,yBAAyB,GAAG,CAAC,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,yBAAyB,CAAC,YAAY,CAAC,CAAC,CAAC;IAC5G,IAAI,yBAAyB,EAAE;QAC7B,MAAM,IAAI,gDAAqB,CAAC,QAAQ,SAAS,kBAAkB,YAAY,YAAY,YAAY,4BAA4B,CAAC,CAAC;KACtI;IACD,cAAc,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;AAC1C,CAAC,CAAA;AAGD,MAAM,yBAAyB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,IAAoB,EAAE,EAAE,WAC3E,OAAA,IAAI,CAAC,IAAI,KAAK,cAAI,CAAC,sBAAsB,IAAI,CAAC,CAAC,CAAA,MAAA,IAAI,CAAC,UAAU,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC,CAAA,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAA,EAAA,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-maps-to-transformer",
3
- "version": "1.2.0-category-split-test.2",
3
+ "version": "2.1.0-beta.0",
4
4
  "description": "Amplify GraphQL @mapsTo transformer",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "https://github.com/aws-amplify/amplify-cli.git",
7
+ "url": "https://github.com/aws-amplify/amplify-category-api.git",
8
8
  "directory": "packages/amplify-graphql-maps-to-transformer"
9
9
  },
10
10
  "author": "Amazon Web Services",
@@ -29,19 +29,19 @@
29
29
  "test": "jest"
30
30
  },
31
31
  "dependencies": {
32
- "@aws-amplify/graphql-transformer-core": "0.17.0-category-split-test.2",
33
- "@aws-amplify/graphql-transformer-interfaces": "1.14.0-category-split-test.0",
34
- "@aws-cdk/aws-appsync": "~1.124.0",
35
- "@aws-cdk/aws-iam": "~1.124.0",
36
- "@aws-cdk/aws-lambda": "~1.124.0",
37
- "@aws-cdk/core": "~1.124.0",
38
- "graphql-mapping-template": "4.21.0-category-split-test.2",
39
- "graphql-transformer-common": "4.24.0-category-split-test.2"
32
+ "@aws-amplify/graphql-transformer-core": "1.1.0-beta.0",
33
+ "@aws-amplify/graphql-transformer-interfaces": "2.1.0-beta.0",
34
+ "@aws-cdk/aws-appsync-alpha": "~2.44.0-alpha.0",
35
+ "aws-cdk-lib": "~2.44.0",
36
+ "constructs": "^10.0.5",
37
+ "graphql-mapping-template": "4.20.5",
38
+ "graphql-transformer-common": "4.24.0"
40
39
  },
41
40
  "devDependencies": {
42
- "@aws-amplify/graphql-model-transformer": "0.14.0-category-split-test.2",
43
- "@aws-amplify/graphql-relational-transformer": "0.9.0-category-split-test.2",
44
- "@aws-amplify/graphql-searchable-transformer": "0.14.0-category-split-test.2",
41
+ "@aws-amplify/graphql-index-transformer": "1.1.0-beta.0",
42
+ "@aws-amplify/graphql-model-transformer": "1.1.0-beta.0",
43
+ "@aws-amplify/graphql-relational-transformer": "1.1.0-beta.0",
44
+ "@aws-amplify/graphql-searchable-transformer": "1.1.0-beta.0",
45
45
  "graphql": "^14.5.8",
46
46
  "mkdirp": "^0.5.5"
47
47
  },
@@ -60,5 +60,5 @@
60
60
  ],
61
61
  "collectCoverage": true
62
62
  },
63
- "gitHead": "26eea04aaa72ad5f59e8fedfcbad1f5849107088"
63
+ "gitHead": "1587b44fa0e9f3cffe613d6df384af1f8ce40355"
64
64
  }