@taimos/projen 0.1.86 → 0.1.87

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/.jsii CHANGED
@@ -296,6 +296,143 @@
296
296
  ],
297
297
  "symbolId": "src/components/amplify-deploy:AmplifyDeployStage"
298
298
  },
299
+ "@taimos/projen.ApiGraphqlCodegen": {
300
+ "assembly": "@taimos/projen",
301
+ "datatype": true,
302
+ "docs": {
303
+ "stability": "stable",
304
+ "summary": "GraphQL (graphql-codegen) codegen options for the shared API library."
305
+ },
306
+ "fqn": "@taimos/projen.ApiGraphqlCodegen",
307
+ "kind": "interface",
308
+ "locationInModule": {
309
+ "filename": "src/projects/api-library.ts",
310
+ "line": 25
311
+ },
312
+ "name": "ApiGraphqlCodegen",
313
+ "properties": [
314
+ {
315
+ "abstract": true,
316
+ "docs": {
317
+ "default": "'./src/generated/graphql.model.generated.ts'",
318
+ "stability": "stable",
319
+ "summary": "The generated TypeScript output file."
320
+ },
321
+ "immutable": true,
322
+ "locationInModule": {
323
+ "filename": "src/projects/api-library.ts",
324
+ "line": 37
325
+ },
326
+ "name": "outputFile",
327
+ "optional": true,
328
+ "type": {
329
+ "primitive": "string"
330
+ }
331
+ },
332
+ {
333
+ "abstract": true,
334
+ "docs": {
335
+ "default": "- the AppSync scalar map",
336
+ "remarks": "Defaults to the AppSync scalar set\n(all mapped to `string`).",
337
+ "stability": "stable",
338
+ "summary": "Scalar map passed to graphql-codegen."
339
+ },
340
+ "immutable": true,
341
+ "locationInModule": {
342
+ "filename": "src/projects/api-library.ts",
343
+ "line": 44
344
+ },
345
+ "name": "scalars",
346
+ "optional": true,
347
+ "type": {
348
+ "collection": {
349
+ "elementtype": {
350
+ "primitive": "string"
351
+ },
352
+ "kind": "map"
353
+ }
354
+ }
355
+ },
356
+ {
357
+ "abstract": true,
358
+ "docs": {
359
+ "default": "['aws.graphql', 'schema.graphql']",
360
+ "stability": "stable",
361
+ "summary": "The GraphQL schema files, in order, relative to the package root."
362
+ },
363
+ "immutable": true,
364
+ "locationInModule": {
365
+ "filename": "src/projects/api-library.ts",
366
+ "line": 31
367
+ },
368
+ "name": "schemaFiles",
369
+ "optional": true,
370
+ "type": {
371
+ "collection": {
372
+ "elementtype": {
373
+ "primitive": "string"
374
+ },
375
+ "kind": "array"
376
+ }
377
+ }
378
+ }
379
+ ],
380
+ "symbolId": "src/projects/api-library:ApiGraphqlCodegen"
381
+ },
382
+ "@taimos/projen.ApiRestCodegen": {
383
+ "assembly": "@taimos/projen",
384
+ "datatype": true,
385
+ "docs": {
386
+ "stability": "stable",
387
+ "summary": "REST (OpenAPI) codegen options for the shared API library."
388
+ },
389
+ "fqn": "@taimos/projen.ApiRestCodegen",
390
+ "kind": "interface",
391
+ "locationInModule": {
392
+ "filename": "src/projects/api-library.ts",
393
+ "line": 7
394
+ },
395
+ "name": "ApiRestCodegen",
396
+ "properties": [
397
+ {
398
+ "abstract": true,
399
+ "docs": {
400
+ "default": "'src/generated/rest.model.generated.ts'",
401
+ "stability": "stable",
402
+ "summary": "The generated TypeScript output file."
403
+ },
404
+ "immutable": true,
405
+ "locationInModule": {
406
+ "filename": "src/projects/api-library.ts",
407
+ "line": 19
408
+ },
409
+ "name": "outputFile",
410
+ "optional": true,
411
+ "type": {
412
+ "primitive": "string"
413
+ }
414
+ },
415
+ {
416
+ "abstract": true,
417
+ "docs": {
418
+ "default": "'rest.yaml'",
419
+ "stability": "stable",
420
+ "summary": "The OpenAPI spec file, relative to the package root."
421
+ },
422
+ "immutable": true,
423
+ "locationInModule": {
424
+ "filename": "src/projects/api-library.ts",
425
+ "line": 13
426
+ },
427
+ "name": "specFile",
428
+ "optional": true,
429
+ "type": {
430
+ "primitive": "string"
431
+ }
432
+ }
433
+ ],
434
+ "symbolId": "src/projects/api-library:ApiRestCodegen"
435
+ },
299
436
  "@taimos/projen.GitHubAmplifyDeploy": {
300
437
  "assembly": "@taimos/projen",
301
438
  "base": "projen.Component",
@@ -2148,6 +2285,119 @@
2148
2285
  ],
2149
2286
  "symbolId": "src/projects/prod-cdk-app:SonarcloudOptions"
2150
2287
  },
2288
+ "@taimos/projen.TaimosApiLibrary": {
2289
+ "assembly": "@taimos/projen",
2290
+ "base": "@taimos/projen.TaimosPrivateTypescriptLibrary",
2291
+ "docs": {
2292
+ "custom": {
2293
+ "pjid": "taimos-api-library"
2294
+ },
2295
+ "remarks": "Owns the canonical contract (OpenAPI and/or GraphQL) and the generated\nTypeScript types, consumed by the backend and frontends via `workspace:*`.\nWires the codegen tasks, the `@generated`/`@util` tsconfig path aliases, and\nthe matching jest `moduleNameMapper` so a consumer does not re-derive them.",
2296
+ "stability": "stable",
2297
+ "summary": "The shared, workspace-internal API/types library for a Taimos monorepo."
2298
+ },
2299
+ "fqn": "@taimos/projen.TaimosApiLibrary",
2300
+ "initializer": {
2301
+ "docs": {
2302
+ "stability": "stable"
2303
+ },
2304
+ "locationInModule": {
2305
+ "filename": "src/projects/api-library.ts",
2306
+ "line": 92
2307
+ },
2308
+ "parameters": [
2309
+ {
2310
+ "name": "options",
2311
+ "type": {
2312
+ "fqn": "@taimos/projen.TaimosApiLibraryOptions"
2313
+ }
2314
+ }
2315
+ ]
2316
+ },
2317
+ "kind": "class",
2318
+ "locationInModule": {
2319
+ "filename": "src/projects/api-library.ts",
2320
+ "line": 90
2321
+ },
2322
+ "name": "TaimosApiLibrary",
2323
+ "symbolId": "src/projects/api-library:TaimosApiLibrary"
2324
+ },
2325
+ "@taimos/projen.TaimosApiLibraryOptions": {
2326
+ "assembly": "@taimos/projen",
2327
+ "datatype": true,
2328
+ "docs": {
2329
+ "stability": "stable"
2330
+ },
2331
+ "fqn": "@taimos/projen.TaimosApiLibraryOptions",
2332
+ "interfaces": [
2333
+ "@taimos/projen.TaimosPrivateTypescriptLibraryOptions"
2334
+ ],
2335
+ "kind": "interface",
2336
+ "locationInModule": {
2337
+ "filename": "src/projects/api-library.ts",
2338
+ "line": 47
2339
+ },
2340
+ "name": "TaimosApiLibraryOptions",
2341
+ "properties": [
2342
+ {
2343
+ "abstract": true,
2344
+ "docs": {
2345
+ "default": "false",
2346
+ "remarks": "Pass `true` for defaults, an object to customise, or omit to disable. The\ngraphql-codegen v5 / typescript-plugin v4 lines are pinned because v6/v7 are\nincompatible with graphql 16, which the workspace pins.",
2347
+ "stability": "stable",
2348
+ "summary": "Enable GraphQL codegen via `graphql-codegen`."
2349
+ },
2350
+ "immutable": true,
2351
+ "locationInModule": {
2352
+ "filename": "src/projects/api-library.ts",
2353
+ "line": 65
2354
+ },
2355
+ "name": "graphql",
2356
+ "optional": true,
2357
+ "type": {
2358
+ "union": {
2359
+ "types": [
2360
+ {
2361
+ "primitive": "boolean"
2362
+ },
2363
+ {
2364
+ "fqn": "@taimos/projen.ApiGraphqlCodegen"
2365
+ }
2366
+ ]
2367
+ }
2368
+ }
2369
+ },
2370
+ {
2371
+ "abstract": true,
2372
+ "docs": {
2373
+ "default": "true",
2374
+ "remarks": "Pass `true` for defaults, an object to customise, or `false` to disable.",
2375
+ "stability": "stable",
2376
+ "summary": "Enable REST (OpenAPI -> TypeScript) codegen via `openapi-typescript`."
2377
+ },
2378
+ "immutable": true,
2379
+ "locationInModule": {
2380
+ "filename": "src/projects/api-library.ts",
2381
+ "line": 55
2382
+ },
2383
+ "name": "rest",
2384
+ "optional": true,
2385
+ "type": {
2386
+ "union": {
2387
+ "types": [
2388
+ {
2389
+ "primitive": "boolean"
2390
+ },
2391
+ {
2392
+ "fqn": "@taimos/projen.ApiRestCodegen"
2393
+ }
2394
+ ]
2395
+ }
2396
+ }
2397
+ }
2398
+ ],
2399
+ "symbolId": "src/projects/api-library:TaimosApiLibraryOptions"
2400
+ },
2151
2401
  "@taimos/projen.TaimosCdkApp": {
2152
2402
  "assembly": "@taimos/projen",
2153
2403
  "base": "projen.awscdk.AwsCdkTypeScriptApp",
@@ -2479,6 +2729,6 @@
2479
2729
  "symbolId": "src/projects/ts-lib:TaimosTypescriptLibraryOptions"
2480
2730
  }
2481
2731
  },
2482
- "version": "0.1.86",
2483
- "fingerprint": "QaH2t/5432nWjNrfp7Qa0p345OOKDiThDhc4BxiDF+8="
2732
+ "version": "0.1.87",
2733
+ "fingerprint": "rEeE+jvCUjxQr1SmqVcGg+lG7JBwhMmd3y4F2hWT3DM="
2484
2734
  }