@coderich/autograph 0.13.7 → 0.13.8

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coderich/autograph",
3
3
  "main": "index.js",
4
- "version": "0.13.7",
4
+ "version": "0.13.8",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -367,8 +367,10 @@ module.exports = class Schema {
367
367
 
368
368
  return parse(`
369
369
  scalar AutoGraphMixed
370
+ scalar AutoGraphDriver # DELETE WHEN MIGRATED
370
371
 
371
372
  enum AutoGraphIndexEnum { unique }
373
+ enum AutoGraphAuthzEnum { private protected public } # DELETE WHEN MIGRATED
372
374
  enum AutoGraphOnDeleteEnum { cascade nullify restrict defer }
373
375
  enum AutoGraphPipelineEnum { ${Object.keys(Pipeline).filter(k => !k.startsWith('$')).join(' ')} }
374
376
 
@@ -382,6 +384,16 @@ module.exports = class Schema {
382
384
  decorate: AutoGraphMixed # Decorator (default: "default")
383
385
  embed: Boolean # Mark this an embedded model (default false)
384
386
  persist: Boolean # Persist this model (default true)
387
+
388
+ # TEMP TO APPEASE TRANSITION
389
+ driver: AutoGraphDriver # External data driver
390
+ createdAt: String # Specify db key (default "createdAt")
391
+ updatedAt: String # Specify db key (default "updatedAt")
392
+ gqlScope: AutoGraphMixed # Dictate how GraphQL API behaves
393
+ dalScope: AutoGraphMixed # Dictate how the DAL behaves
394
+ fieldScope: AutoGraphMixed # Dictate how a FIELD may use me
395
+ authz: AutoGraphAuthzEnum # Access level used for authorization (default: private)
396
+ namespace: String # Logical grouping of models that can be globbed (useful for authz)
385
397
  ) on OBJECT | INTERFACE
386
398
 
387
399
  directive @${field}(
@@ -400,6 +412,16 @@ module.exports = class Schema {
400
412
  serialize: [AutoGraphPipelineEnum!]
401
413
  finalize: [AutoGraphPipelineEnum!]
402
414
  validate: [AutoGraphPipelineEnum!] # Alias for finalize
415
+
416
+ # TEMP TO APPEASE TRANSITION
417
+ id: String # Specify the ModelRef this field FK References
418
+ ref: AutoGraphMixed # Specify the modelRef field's name (overrides isEmbedded)
419
+ gqlScope: AutoGraphMixed # Dictate how GraphQL API behaves
420
+ dalScope: AutoGraphMixed # Dictate how the DAL behaves
421
+ fieldScope: AutoGraphMixed # Dictate how a FIELD may use me
422
+ destruct: [AutoGraphPipelineEnum!]
423
+ transform: [AutoGraphPipelineEnum!]
424
+ deserialize: [AutoGraphPipelineEnum!]
403
425
  ) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION | SCALAR
404
426
 
405
427
  directive @${link}(