@po-ui/ng-sync 14.0.0 → 14.2.1

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 (116) hide show
  1. package/README.md +22 -22
  2. package/esm2020/lib/index.mjs +15 -15
  3. package/esm2020/lib/models/index.mjs +6 -6
  4. package/esm2020/lib/models/po-data-message.model.mjs +57 -57
  5. package/esm2020/lib/models/po-data-transform.model.mjs +22 -22
  6. package/esm2020/lib/models/po-entity/po-entity.model.mjs +214 -214
  7. package/esm2020/lib/models/po-event-sourcing-error-response.model.mjs +17 -17
  8. package/esm2020/lib/models/po-network-status.model.mjs +44 -44
  9. package/esm2020/lib/models/po-network-type.enum.mjs +30 -30
  10. package/esm2020/lib/models/po-query-builder/po-query-builder.model.mjs +238 -238
  11. package/esm2020/lib/models/po-request-type.enum.mjs +16 -16
  12. package/esm2020/lib/po-sync.module.mjs +45 -45
  13. package/esm2020/lib/services/po-event-sourcing/enums/po-event-sourcing-operation.enum.mjs +17 -17
  14. package/esm2020/lib/services/po-event-sourcing/index.mjs +4 -4
  15. package/esm2020/lib/services/po-event-sourcing/interfaces/po-event-sourcing-item.interface.mjs +2 -2
  16. package/esm2020/lib/services/po-event-sourcing/interfaces/po-event-sourcing-summary-item.interface.mjs +2 -2
  17. package/esm2020/lib/services/po-event-sourcing/po-event-sourcing.service.mjs +372 -372
  18. package/esm2020/lib/services/po-http-client/interfaces/po-http-header-option.interface.mjs +11 -11
  19. package/esm2020/lib/services/po-http-client/interfaces/po-http-request-data.interface.mjs +2 -2
  20. package/esm2020/lib/services/po-http-client/interfaces/po-response-api.interface.mjs +2 -2
  21. package/esm2020/lib/services/po-http-client/po-http-client.service.mjs +148 -148
  22. package/esm2020/lib/services/po-http-client/po-http-request-type.enum.mjs +25 -25
  23. package/esm2020/lib/services/po-network/po-network.service.mjs +58 -58
  24. package/esm2020/lib/services/po-schema/index.mjs +4 -4
  25. package/esm2020/lib/services/po-schema/po-schema-definition/po-schema-definition.service.mjs +77 -77
  26. package/esm2020/lib/services/po-schema/po-schema-util/po-schema-util.model.mjs +124 -124
  27. package/esm2020/lib/services/po-schema/po-schema.service.mjs +174 -174
  28. package/esm2020/lib/services/po-sync/interfaces/po-sync-config.interface.mjs +2 -2
  29. package/esm2020/lib/services/po-sync/interfaces/po-sync-field-options.interface.mjs +2 -2
  30. package/esm2020/lib/services/po-sync/interfaces/po-sync-response.interface.mjs +2 -2
  31. package/esm2020/lib/services/po-sync/interfaces/po-sync-schema.interface.mjs +2 -2
  32. package/esm2020/lib/services/po-sync/po-sync.service.mjs +325 -325
  33. package/esm2020/lib/utils/utils.mjs +63 -63
  34. package/esm2020/po-ui-ng-sync.mjs +4 -4
  35. package/esm2020/public-api.mjs +2 -2
  36. package/fesm2015/po-ui-ng-sync.mjs +2060 -2060
  37. package/fesm2015/po-ui-ng-sync.mjs.map +1 -1
  38. package/fesm2020/po-ui-ng-sync.mjs +1965 -1965
  39. package/fesm2020/po-ui-ng-sync.mjs.map +1 -1
  40. package/index.d.ts +5 -5
  41. package/lib/index.d.ts +14 -14
  42. package/lib/models/index.d.ts +5 -5
  43. package/lib/models/po-data-message.model.d.ts +46 -46
  44. package/lib/models/po-data-transform.model.d.ts +52 -52
  45. package/lib/models/po-entity/po-entity.model.d.ts +122 -122
  46. package/lib/models/po-event-sourcing-error-response.model.d.ts +20 -20
  47. package/lib/models/po-network-status.model.d.ts +25 -25
  48. package/lib/models/po-network-type.enum.d.ts +28 -28
  49. package/lib/models/po-query-builder/po-query-builder.model.d.ts +126 -126
  50. package/lib/models/po-request-type.enum.d.ts +14 -14
  51. package/lib/po-sync.module.d.ts +12 -12
  52. package/lib/services/po-event-sourcing/enums/po-event-sourcing-operation.enum.d.ts +11 -11
  53. package/lib/services/po-event-sourcing/index.d.ts +3 -3
  54. package/lib/services/po-event-sourcing/interfaces/po-event-sourcing-item.interface.d.ts +26 -26
  55. package/lib/services/po-event-sourcing/interfaces/po-event-sourcing-summary-item.interface.d.ts +16 -16
  56. package/lib/services/po-event-sourcing/po-event-sourcing.service.d.ts +74 -74
  57. package/lib/services/po-http-client/interfaces/po-http-header-option.interface.d.ts +15 -15
  58. package/lib/services/po-http-client/interfaces/po-http-request-data.interface.d.ts +24 -24
  59. package/lib/services/po-http-client/interfaces/po-response-api.interface.d.ts +14 -14
  60. package/lib/services/po-http-client/po-http-client.service.d.ts +78 -78
  61. package/lib/services/po-http-client/po-http-request-type.enum.d.ts +23 -23
  62. package/lib/services/po-network/po-network.service.d.ts +36 -36
  63. package/lib/services/po-schema/index.d.ts +3 -3
  64. package/lib/services/po-schema/po-schema-definition/po-schema-definition.service.d.ts +51 -51
  65. package/lib/services/po-schema/po-schema-util/po-schema-util.model.d.ts +79 -79
  66. package/lib/services/po-schema/po-schema.service.d.ts +98 -98
  67. package/lib/services/po-sync/interfaces/po-sync-config.interface.d.ts +24 -24
  68. package/lib/services/po-sync/interfaces/po-sync-field-options.interface.d.ts +15 -15
  69. package/lib/services/po-sync/interfaces/po-sync-response.interface.d.ts +20 -20
  70. package/lib/services/po-sync/interfaces/po-sync-schema.interface.d.ts +37 -37
  71. package/lib/services/po-sync/po-sync.service.d.ts +162 -162
  72. package/lib/utils/utils.d.ts +36 -36
  73. package/package.json +4 -4
  74. package/po-ui-ng-sync-14.2.1.tgz +0 -0
  75. package/public-api.d.ts +1 -1
  76. package/schematics/README.md +169 -169
  77. package/schematics/collection.json +15 -15
  78. package/schematics/migrations.json +35 -35
  79. package/schematics/ng-add/index.d.ts +7 -7
  80. package/schematics/ng-add/index.js +33 -33
  81. package/schematics/ng-add/index.spec.d.ts +1 -1
  82. package/schematics/ng-add/index.spec.js +62 -62
  83. package/schematics/ng-add/schema.json +16 -16
  84. package/schematics/ng-generate/schema/files/__path__/__name@dasherize__/__name@dasherize__.constants.ts.template +13 -13
  85. package/schematics/ng-generate/schema/index.d.ts +4 -4
  86. package/schematics/ng-generate/schema/index.js +12 -12
  87. package/schematics/ng-generate/schema/index.spec.d.ts +1 -1
  88. package/schematics/ng-generate/schema/index.spec.js +44 -44
  89. package/schematics/ng-generate/schema/schema.d.ts +3 -3
  90. package/schematics/ng-generate/schema/schema.js +2 -2
  91. package/schematics/ng-generate/schema/schema.json +31 -31
  92. package/schematics/ng-update/v14/changes.d.ts +2 -2
  93. package/schematics/ng-update/v14/changes.js +13 -13
  94. package/schematics/ng-update/v14/index.d.ts +1 -1
  95. package/schematics/ng-update/v14/index.js +15 -15
  96. package/schematics/ng-update/v2/changes.d.ts +8 -8
  97. package/schematics/ng-update/v2/changes.js +20 -20
  98. package/schematics/ng-update/v2/index.d.ts +5 -5
  99. package/schematics/ng-update/v2/index.js +101 -101
  100. package/schematics/ng-update/v3/changes.d.ts +2 -2
  101. package/schematics/ng-update/v3/changes.js +14 -14
  102. package/schematics/ng-update/v3/index.d.ts +1 -1
  103. package/schematics/ng-update/v3/index.js +16 -16
  104. package/schematics/ng-update/v4/changes.d.ts +2 -2
  105. package/schematics/ng-update/v4/changes.js +14 -14
  106. package/schematics/ng-update/v4/index.d.ts +1 -1
  107. package/schematics/ng-update/v4/index.js +15 -15
  108. package/schematics/ng-update/v5/changes.d.ts +2 -2
  109. package/schematics/ng-update/v5/changes.js +13 -13
  110. package/schematics/ng-update/v5/index.d.ts +1 -1
  111. package/schematics/ng-update/v5/index.js +15 -15
  112. package/schematics/ng-update/v6/changes.d.ts +2 -2
  113. package/schematics/ng-update/v6/changes.js +13 -13
  114. package/schematics/ng-update/v6/index.d.ts +1 -1
  115. package/schematics/ng-update/v6/index.js +15 -15
  116. package/po-ui-ng-sync-14.0.0.tgz +0 -0
@@ -1,63 +1,63 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const testing_1 = require("@angular-devkit/schematics/testing");
5
- const path = require("path");
6
- const collectionPath = path.join(__dirname, '../collection.json');
7
- xdescribe('Schematic: ng-add', () => {
8
- const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
9
- const workspaceOptions = {
10
- name: 'workspace',
11
- newProjectRoot: 'projects',
12
- version: '6.0.0'
13
- };
14
- const componentOptions = {
15
- name: 'po'
16
- };
17
- let appTree;
18
- let infoOutput;
19
- beforeEach(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
20
- appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
21
- appTree = yield runner
22
- .runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
23
- .toPromise();
24
- infoOutput = [];
25
- runner.logger.subscribe(e => {
26
- if (e.level === 'info') {
27
- infoOutput.push(e.message);
28
- }
29
- });
30
- }));
31
- describe('Dependencies:', () => {
32
- it('should update package.json with @po-ui/ng-sync dependencies and run nodePackageInstall', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
33
- const tree = yield runner.runSchematicAsync('ng-add', componentOptions, appTree).toPromise();
34
- const packageJson = JSON.parse(getFileContent(tree, '/package.json'));
35
- const dependencies = packageJson.dependencies;
36
- const info = 'Sync added successfully, please execute the commands `npm install cordova-plugin-network-information @awesome-cordova-plugins/network` and `ionic cap sync`';
37
- expect(dependencies['@po-ui/ng-sync']).toBeDefined();
38
- expect(Object.keys(dependencies)).toEqual(Object.keys(dependencies).sort());
39
- expect(runner.tasks.some(task => task.name === 'node-package')).toBe(true);
40
- expect(infoOutput.length).toBe(1);
41
- expect(infoOutput[0]).toMatch(new RegExp(`${info}`));
42
- }));
43
- });
44
- describe('Imports:', () => {
45
- it('should add the PoSyncModule and PoStorageModule to the project module', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
46
- const poSyncModuleName = 'PoSyncModule';
47
- const poStorageModuleName = 'PoStorageModule';
48
- const tree = yield runner.runSchematicAsync('ng-add', componentOptions, appTree).toPromise();
49
- const fileContent = getFileContent(tree, `projects/${componentOptions.name}/src/app/app.module.ts`);
50
- expect(fileContent).toContain(poSyncModuleName);
51
- expect(fileContent).toContain(poStorageModuleName);
52
- }));
53
- });
54
- });
55
- /** Gets the content of a specified file from a schematic tree. */
56
- function getFileContent(tree, filePath) {
57
- const contentBuffer = tree.read(filePath);
58
- if (!contentBuffer) {
59
- throw new Error(`Cannot read "${filePath}" because it does not exist.`);
60
- }
61
- return contentBuffer.toString();
62
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const testing_1 = require("@angular-devkit/schematics/testing");
5
+ const path = require("path");
6
+ const collectionPath = path.join(__dirname, '../collection.json');
7
+ xdescribe('Schematic: ng-add', () => {
8
+ const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
9
+ const workspaceOptions = {
10
+ name: 'workspace',
11
+ newProjectRoot: 'projects',
12
+ version: '6.0.0'
13
+ };
14
+ const componentOptions = {
15
+ name: 'po'
16
+ };
17
+ let appTree;
18
+ let infoOutput;
19
+ beforeEach(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
20
+ appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
21
+ appTree = yield runner
22
+ .runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
23
+ .toPromise();
24
+ infoOutput = [];
25
+ runner.logger.subscribe(e => {
26
+ if (e.level === 'info') {
27
+ infoOutput.push(e.message);
28
+ }
29
+ });
30
+ }));
31
+ describe('Dependencies:', () => {
32
+ it('should update package.json with @po-ui/ng-sync dependencies and run nodePackageInstall', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
33
+ const tree = yield runner.runSchematicAsync('ng-add', componentOptions, appTree).toPromise();
34
+ const packageJson = JSON.parse(getFileContent(tree, '/package.json'));
35
+ const dependencies = packageJson.dependencies;
36
+ const info = 'Sync added successfully, please execute the commands `npm install cordova-plugin-network-information @awesome-cordova-plugins/network` and `ionic cap sync`';
37
+ expect(dependencies['@po-ui/ng-sync']).toBeDefined();
38
+ expect(Object.keys(dependencies)).toEqual(Object.keys(dependencies).sort());
39
+ expect(runner.tasks.some(task => task.name === 'node-package')).toBe(true);
40
+ expect(infoOutput.length).toBe(1);
41
+ expect(infoOutput[0]).toMatch(new RegExp(`${info}`));
42
+ }));
43
+ });
44
+ describe('Imports:', () => {
45
+ it('should add the PoSyncModule and PoStorageModule to the project module', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
46
+ const poSyncModuleName = 'PoSyncModule';
47
+ const poStorageModuleName = 'PoStorageModule';
48
+ const tree = yield runner.runSchematicAsync('ng-add', componentOptions, appTree).toPromise();
49
+ const fileContent = getFileContent(tree, `projects/${componentOptions.name}/src/app/app.module.ts`);
50
+ expect(fileContent).toContain(poSyncModuleName);
51
+ expect(fileContent).toContain(poStorageModuleName);
52
+ }));
53
+ });
54
+ });
55
+ /** Gets the content of a specified file from a schematic tree. */
56
+ function getFileContent(tree, filePath) {
57
+ const contentBuffer = tree.read(filePath);
58
+ if (!contentBuffer) {
59
+ throw new Error(`Cannot read "${filePath}" because it does not exist.`);
60
+ }
61
+ return contentBuffer.toString();
62
+ }
63
63
  //# sourceMappingURL=index.spec.js.map
@@ -1,16 +1,16 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "SchematicsNgAdd",
4
- "title": "Ng Add Options Schema",
5
- "type": "object",
6
- "properties": {
7
- "project": {
8
- "type": "string",
9
- "description": "Name of the project.",
10
- "$default": {
11
- "$source": "projectName"
12
- }
13
- }
14
- },
15
- "required": []
16
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "SchematicsNgAdd",
4
+ "title": "Ng Add Options Schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "project": {
8
+ "type": "string",
9
+ "description": "Name of the project.",
10
+ "$default": {
11
+ "$source": "projectName"
12
+ }
13
+ }
14
+ },
15
+ "required": []
16
+ }
@@ -1,13 +1,13 @@
1
- import { PoSyncSchema } from '@po-ui/ng-sync';
2
-
3
- export const <%= name %>Schema: PoSyncSchema = {
4
- getUrlApi:
5
- 'http://localhost:8080/<%= name %>',
6
- diffUrlApi:
7
- 'http://localhost:8080/<%= name %>/diff',
8
- deletedField: 'deleted',
9
- fields: ['id', 'title', 'location', 'description'],
10
- idField: 'id',
11
- name: '<%= name %>',
12
- pageSize: 1,
13
- };
1
+ import { PoSyncSchema } from '@po-ui/ng-sync';
2
+
3
+ export const <%= name %>Schema: PoSyncSchema = {
4
+ getUrlApi:
5
+ 'http://localhost:8080/<%= name %>',
6
+ diffUrlApi:
7
+ 'http://localhost:8080/<%= name %>/diff',
8
+ deletedField: 'deleted',
9
+ fields: ['id', 'title', 'location', 'description'],
10
+ idField: 'id',
11
+ name: '<%= name %>',
12
+ pageSize: 1,
13
+ };
@@ -1,4 +1,4 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { Schema as FileOptions } from './schema';
3
- /** Scaffolds a new sync schema file */
4
- export default function (options: FileOptions): Rule;
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { Schema as FileOptions } from './schema';
3
+ /** Scaffolds a new sync schema file */
4
+ export default function (options: FileOptions): Rule;
@@ -1,13 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schematics_1 = require("@angular-devkit/schematics");
4
- const build_file_1 = require("@po-ui/ng-schematics/build-file");
5
- /** Scaffolds a new sync schema file */
6
- function default_1(options) {
7
- return (0, schematics_1.chain)([createSyncSchema(options)]);
8
- }
9
- exports.default = default_1;
10
- function createSyncSchema(options) {
11
- return (0, build_file_1.buildFile)(options);
12
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schematics_1 = require("@angular-devkit/schematics");
4
+ const build_file_1 = require("@po-ui/ng-schematics/build-file");
5
+ /** Scaffolds a new sync schema file */
6
+ function default_1(options) {
7
+ return (0, schematics_1.chain)([createSyncSchema(options)]);
8
+ }
9
+ exports.default = default_1;
10
+ function createSyncSchema(options) {
11
+ return (0, build_file_1.buildFile)(options);
12
+ }
13
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,45 +1,45 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const testing_1 = require("@angular-devkit/schematics/testing");
5
- const path = require("path");
6
- const collectionPath = path.join(__dirname, '../../collection.json');
7
- xdescribe('schema:', () => {
8
- const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
9
- const workspaceOptions = {
10
- name: 'workspace',
11
- newProjectRoot: 'projects',
12
- version: '6.0.0'
13
- };
14
- const componentOptions = {
15
- name: 'po'
16
- };
17
- let appTree;
18
- beforeEach(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
19
- appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
20
- appTree = yield runner
21
- .runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
22
- .toPromise();
23
- }));
24
- it('should create sync schema', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
25
- const schemaName = 'supply';
26
- const tree = yield runner
27
- .runSchematicAsync('schema', Object.assign(Object.assign({}, componentOptions), { name: schemaName }), appTree)
28
- .toPromise();
29
- const files = tree.files;
30
- const fullFilePath = `/projects/${componentOptions.name}/src/app/${schemaName}/${schemaName}.constants.ts`;
31
- const schemaContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/${schemaName}/${schemaName}.constants.ts`);
32
- expect(files).toContain(fullFilePath);
33
- expect(schemaContent).toMatch(new RegExp(`name: '${schemaName}'`));
34
- expect(schemaContent).toMatch(new RegExp(`export const ${schemaName}Schema: PoSyncSchema`));
35
- }));
36
- /** Gets the content of a specified file from a schematic tree. */
37
- function getFileContent(tree, filePath) {
38
- const contentBuffer = tree.read(filePath);
39
- if (!contentBuffer) {
40
- throw new Error(`Cannot read "${filePath}" because it does not exist.`);
41
- }
42
- return contentBuffer.toString();
43
- }
44
- });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const testing_1 = require("@angular-devkit/schematics/testing");
5
+ const path = require("path");
6
+ const collectionPath = path.join(__dirname, '../../collection.json');
7
+ xdescribe('schema:', () => {
8
+ const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
9
+ const workspaceOptions = {
10
+ name: 'workspace',
11
+ newProjectRoot: 'projects',
12
+ version: '6.0.0'
13
+ };
14
+ const componentOptions = {
15
+ name: 'po'
16
+ };
17
+ let appTree;
18
+ beforeEach(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
19
+ appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
20
+ appTree = yield runner
21
+ .runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
22
+ .toPromise();
23
+ }));
24
+ it('should create sync schema', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
25
+ const schemaName = 'supply';
26
+ const tree = yield runner
27
+ .runSchematicAsync('schema', Object.assign(Object.assign({}, componentOptions), { name: schemaName }), appTree)
28
+ .toPromise();
29
+ const files = tree.files;
30
+ const fullFilePath = `/projects/${componentOptions.name}/src/app/${schemaName}/${schemaName}.constants.ts`;
31
+ const schemaContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/${schemaName}/${schemaName}.constants.ts`);
32
+ expect(files).toContain(fullFilePath);
33
+ expect(schemaContent).toMatch(new RegExp(`name: '${schemaName}'`));
34
+ expect(schemaContent).toMatch(new RegExp(`export const ${schemaName}Schema: PoSyncSchema`));
35
+ }));
36
+ /** Gets the content of a specified file from a schematic tree. */
37
+ function getFileContent(tree, filePath) {
38
+ const contentBuffer = tree.read(filePath);
39
+ if (!contentBuffer) {
40
+ throw new Error(`Cannot read "${filePath}" because it does not exist.`);
41
+ }
42
+ return contentBuffer.toString();
43
+ }
44
+ });
45
45
  //# sourceMappingURL=index.spec.js.map
@@ -1,3 +1,3 @@
1
- import { Schema as ComponentSchema } from '@po-ui/ng-schematics/build-component';
2
- export interface Schema extends ComponentSchema {
3
- }
1
+ import { Schema as ComponentSchema } from '@po-ui/ng-schematics/build-component';
2
+ export interface Schema extends ComponentSchema {
3
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=schema.js.map
@@ -1,31 +1,31 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "SchematicsPOSyncSchema",
4
- "title": "Sync Schema Options Schema",
5
- "type": "object",
6
- "properties": {
7
- "name": {
8
- "type": "string",
9
- "description": "The name to use for the sync schema",
10
- "$default": {
11
- "$source": "argv",
12
- "index": 0
13
- },
14
- "x-prompt": "What name would you like to use for the sync schema?"
15
- },
16
- "path": {
17
- "type": "string",
18
- "format": "path",
19
- "description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
20
- "visible": false
21
- },
22
- "project": {
23
- "type": "string",
24
- "description": "The name of the project.",
25
- "$default": {
26
- "$source": "projectName"
27
- }
28
- }
29
- },
30
- "required": ["name"]
31
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "SchematicsPOSyncSchema",
4
+ "title": "Sync Schema Options Schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "description": "The name to use for the sync schema",
10
+ "$default": {
11
+ "$source": "argv",
12
+ "index": 0
13
+ },
14
+ "x-prompt": "What name would you like to use for the sync schema?"
15
+ },
16
+ "path": {
17
+ "type": "string",
18
+ "format": "path",
19
+ "description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
20
+ "visible": false
21
+ },
22
+ "project": {
23
+ "type": "string",
24
+ "description": "The name of the project.",
25
+ "$default": {
26
+ "$source": "projectName"
27
+ }
28
+ }
29
+ },
30
+ "required": ["name"]
31
+ }
@@ -1,2 +1,2 @@
1
- import { UpdateDependencies } from '@po-ui/ng-schematics/package-config';
2
- export declare const updateDepedenciesVersion: UpdateDependencies;
1
+ import { UpdateDependencies } from '@po-ui/ng-schematics/package-config';
2
+ export declare const updateDepedenciesVersion: UpdateDependencies;
@@ -1,14 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateDepedenciesVersion = void 0;
4
- exports.updateDepedenciesVersion = {
5
- dependencies: [
6
- '@po-ui/ng-components',
7
- '@po-ui/ng-code-editor',
8
- '@po-ui/ng-templates',
9
- '@po-ui/ng-storage',
10
- '@po-ui/ng-sync',
11
- '@po-ui/style'
12
- ]
13
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateDepedenciesVersion = void 0;
4
+ exports.updateDepedenciesVersion = {
5
+ dependencies: [
6
+ '@po-ui/ng-components',
7
+ '@po-ui/ng-code-editor',
8
+ '@po-ui/ng-templates',
9
+ '@po-ui/ng-storage',
10
+ '@po-ui/ng-sync',
11
+ '@po-ui/style'
12
+ ]
13
+ };
14
14
  //# sourceMappingURL=changes.js.map
@@ -1 +1 @@
1
- export default function (): import("@angular-devkit/schematics").Rule;
1
+ export default function (): import("@angular-devkit/schematics").Rule;
@@ -1,16 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schematics_1 = require("@angular-devkit/schematics");
4
- const tasks_1 = require("@angular-devkit/schematics/tasks");
5
- const package_config_1 = require("@po-ui/ng-schematics/package-config");
6
- const changes_1 = require("./changes");
7
- function default_1() {
8
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('14.0.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
- }
10
- exports.default = default_1;
11
- function postUpdate() {
12
- return (_, context) => {
13
- context.addTask(new tasks_1.NodePackageInstallTask());
14
- };
15
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schematics_1 = require("@angular-devkit/schematics");
4
+ const tasks_1 = require("@angular-devkit/schematics/tasks");
5
+ const package_config_1 = require("@po-ui/ng-schematics/package-config");
6
+ const changes_1 = require("./changes");
7
+ function default_1() {
8
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('14.2.1', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ }
10
+ exports.default = default_1;
11
+ function postUpdate() {
12
+ return (_, context) => {
13
+ context.addTask(new tasks_1.NodePackageInstallTask());
14
+ };
15
+ }
16
16
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- import { ReplaceChanges } from '@po-ui/ng-schematics/replace';
2
- export declare const dependeciesChanges: {
3
- '@portinari/portinari-sync': string;
4
- '@portinari/portinari-storage': string;
5
- };
6
- export declare const replaceChanges: Array<ReplaceChanges>;
7
- export declare const regexPackages: RegExp;
8
- export declare const tsLintChanges: Array<ReplaceChanges>;
1
+ import { ReplaceChanges } from '@po-ui/ng-schematics/replace';
2
+ export declare const dependeciesChanges: {
3
+ '@portinari/portinari-sync': string;
4
+ '@portinari/portinari-storage': string;
5
+ };
6
+ export declare const replaceChanges: Array<ReplaceChanges>;
7
+ export declare const regexPackages: RegExp;
8
+ export declare const tsLintChanges: Array<ReplaceChanges>;
@@ -1,21 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.tsLintChanges = exports.regexPackages = exports.replaceChanges = exports.dependeciesChanges = void 0;
4
- exports.dependeciesChanges = {
5
- '@portinari/portinari-sync': '@po-ui/ng-sync',
6
- '@portinari/portinari-storage': '@po-ui/ng-storage'
7
- };
8
- exports.replaceChanges = [
9
- {
10
- replace: 'portinari_sync_date',
11
- replaceWith: 'po_sync_date'
12
- }
13
- ];
14
- exports.regexPackages = new RegExp('@portinari/portinari-((storage)|(sync))', 'g');
15
- exports.tsLintChanges = [
16
- {
17
- replace: '@portinari/tslint',
18
- replaceWith: '@po-ui/ng-tslint'
19
- }
20
- ];
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tsLintChanges = exports.regexPackages = exports.replaceChanges = exports.dependeciesChanges = void 0;
4
+ exports.dependeciesChanges = {
5
+ '@portinari/portinari-sync': '@po-ui/ng-sync',
6
+ '@portinari/portinari-storage': '@po-ui/ng-storage'
7
+ };
8
+ exports.replaceChanges = [
9
+ {
10
+ replace: 'portinari_sync_date',
11
+ replaceWith: 'po_sync_date'
12
+ }
13
+ ];
14
+ exports.regexPackages = new RegExp('@portinari/portinari-((storage)|(sync))', 'g');
15
+ exports.tsLintChanges = [
16
+ {
17
+ replace: '@portinari/tslint',
18
+ replaceWith: '@po-ui/ng-tslint'
19
+ }
20
+ ];
21
21
  //# sourceMappingURL=changes.js.map
@@ -1,5 +1,5 @@
1
- import { Tree } from '@angular-devkit/schematics';
2
- export declare function updateToV2(): import("@angular-devkit/schematics").Rule;
3
- export declare function updatePackageJson(version: string, dependenciesMap: {
4
- [key: string]: string;
5
- }): (tree: Tree) => Tree;
1
+ import { Tree } from '@angular-devkit/schematics';
2
+ export declare function updateToV2(): import("@angular-devkit/schematics").Rule;
3
+ export declare function updatePackageJson(version: string, dependenciesMap: {
4
+ [key: string]: string;
5
+ }): (tree: Tree) => Tree;