@nx-ddd/spreadsheet 18.2.1 → 18.4.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/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './google-sheet';
2
+ export * from './repository';
2
3
  export * from './spreadsheet';
package/index.js CHANGED
@@ -2,5 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./google-sheet"), exports);
5
+ tslib_1.__exportStar(require("./repository"), exports);
5
6
  tslib_1.__exportStar(require("./spreadsheet"), exports);
6
7
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/@nx-ddd/spreadsheet/src/lib/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,wDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/@nx-ddd/spreadsheet/src/lib/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,uDAA6B;AAC7B,wDAA8B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx-ddd/spreadsheet",
3
- "version": "18.2.1",
3
+ "version": "18.4.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "homepage": "https://github.com/xx-machina/plaform/tree/main/packages/@nx-ddd/spreadsheet",
@@ -0,0 +1 @@
1
+ export * from './repository';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./repository"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/spreadsheet/src/lib/repository/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B"}
@@ -0,0 +1,13 @@
1
+ export interface GoogleSheetConverter<T> {
2
+ fromGoogleSheet(record: any): T;
3
+ fromGoogleSheetMany(records: any[]): T[];
4
+ toGoogleSheet(model: T): any;
5
+ toGoogleSheetMany(models: T[]): any[];
6
+ }
7
+ export declare abstract class GoogleSheetRepository<T> {
8
+ protected readonly sheet: import("../sheets/sheets.service.impl").SheetsService;
9
+ protected abstract readonly spreadsheetId: string;
10
+ protected abstract readonly sheetName: string;
11
+ protected abstract readonly converter: GoogleSheetConverter<T>;
12
+ list(): Promise<T[]>;
13
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GoogleSheetRepository = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const core_1 = require("@angular/core");
6
+ const sheets_1 = require("../sheets");
7
+ let GoogleSheetRepository = class GoogleSheetRepository {
8
+ constructor() {
9
+ this.sheet = (0, sheets_1.injectSheetsService)();
10
+ }
11
+ list() {
12
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
13
+ return this.sheet.listRecords(this.spreadsheetId, this.sheetName).then(records => {
14
+ return this.converter.fromGoogleSheetMany(records);
15
+ });
16
+ });
17
+ }
18
+ };
19
+ exports.GoogleSheetRepository = GoogleSheetRepository;
20
+ exports.GoogleSheetRepository = GoogleSheetRepository = tslib_1.__decorate([
21
+ (0, core_1.Injectable)()
22
+ ], GoogleSheetRepository);
23
+ //# sourceMappingURL=repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/spreadsheet/src/lib/repository/repository.ts"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAC3C,sCAAgD;AAUzC,IAAe,qBAAqB,GAApC,MAAe,qBAAqB;IAApC;QACc,UAAK,GAAG,IAAA,4BAAmB,GAAE,CAAC;IAUnD,CAAC;IALO,IAAI;;YACR,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;gBAC/E,OAAO,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YACrD,CAAC,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAA;AAXqB,sDAAqB;gCAArB,qBAAqB;IAD1C,IAAA,iBAAU,GAAE;GACS,qBAAqB,CAW1C"}
@@ -0,0 +1 @@
1
+ export * from './sheets.service';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./sheets.service"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/spreadsheet/src/lib/sheets/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC"}
@@ -0,0 +1,4 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import type { SheetsService } from './sheets.service.impl';
3
+ export declare const SHEETS_SERVICE: InjectionToken<SheetsService>;
4
+ export declare function injectSheetsService(): SheetsService;
@@ -0,0 +1,25 @@
1
+ import { InjectionToken, Provider } from '@angular/core';
2
+ export interface GoogleSheetsConfig {
3
+ credentials: {
4
+ email: string;
5
+ key: string;
6
+ };
7
+ }
8
+ export declare const GOOGLE_SHEETS_CONFIG: InjectionToken<GoogleSheetsConfig>;
9
+ export declare function provideGoogleSheets(useFactory: () => GoogleSheetsConfig): Provider[];
10
+ export declare class SheetsService {
11
+ private config;
12
+ private auth;
13
+ private googleSheets;
14
+ getSheetNames(spreadsheetId: string): Promise<string[]>;
15
+ getSheet(spreadsheetId: string, sheetName: string): Promise<import("googleapis").sheets_v4.Schema$Sheet>;
16
+ getRows(spreadsheetId: string, sheetName: string, { batchSize, }?: {
17
+ batchSize?: number;
18
+ }): Promise<any[]>;
19
+ listRecords(spreadsheetId: string, sheetName: string): Promise<any[]>;
20
+ addSheet(spreadsheetId: string, name: string): Promise<import("gaxios").GaxiosResponse<import("googleapis").sheets_v4.Schema$BatchUpdateSpreadsheetResponse>>;
21
+ copyTo(spreadsheetId: string, sheetId: number): Promise<import("googleapis").sheets_v4.Schema$SheetProperties>;
22
+ deleteRows(spreadsheetId: string, sheetName: string, range?: string): Promise<import("gaxios").GaxiosResponse<import("googleapis").sheets_v4.Schema$ClearValuesResponse>>;
23
+ updateRows(spreadsheetId: string, sheetName: string, rows: any[]): Promise<import("googleapis").sheets_v4.Schema$UpdateValuesResponse>;
24
+ renameSheet(spreadsheetId: string, sheetId: number, name: string): Promise<import("gaxios").GaxiosResponse<import("googleapis").sheets_v4.Schema$BatchUpdateSpreadsheetResponse>>;
25
+ }
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SheetsService = exports.GOOGLE_SHEETS_CONFIG = void 0;
4
+ exports.provideGoogleSheets = provideGoogleSheets;
5
+ const tslib_1 = require("tslib");
6
+ const core_1 = require("@angular/core");
7
+ const googleapis_1 = require("googleapis");
8
+ const google_auth_library_1 = require("google-auth-library");
9
+ const sheets_service_1 = require("./sheets.service");
10
+ exports.GOOGLE_SHEETS_CONFIG = new core_1.InjectionToken('GOOGLE_SHEETS_CONFIG');
11
+ function provideGoogleSheets(useFactory) {
12
+ return [
13
+ { provide: exports.GOOGLE_SHEETS_CONFIG, useFactory },
14
+ { provide: sheets_service_1.SHEETS_SERVICE, useClass: SheetsService },
15
+ ];
16
+ }
17
+ let SheetsService = class SheetsService {
18
+ constructor() {
19
+ this.config = (0, core_1.inject)(exports.GOOGLE_SHEETS_CONFIG);
20
+ this.auth = new google_auth_library_1.JWT({
21
+ email: this.config.credentials.email,
22
+ key: this.config.credentials.key,
23
+ scopes: ['https://www.googleapis.com/auth/spreadsheets'],
24
+ });
25
+ this.googleSheets = googleapis_1.google.sheets({ version: 'v4', auth: this.auth });
26
+ }
27
+ getSheetNames(spreadsheetId) {
28
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
29
+ const sheets = yield this.googleSheets.spreadsheets.get({
30
+ spreadsheetId,
31
+ }).then(res => res.data.sheets);
32
+ return sheets.map(sheet => sheet.properties.title);
33
+ });
34
+ }
35
+ getSheet(spreadsheetId, sheetName) {
36
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
37
+ const sheets = yield this.googleSheets.spreadsheets.get({
38
+ spreadsheetId,
39
+ }).then(res => res.data.sheets);
40
+ return sheets.filter(sheet => sheet.properties.title === sheetName).at(0);
41
+ });
42
+ }
43
+ getRows(spreadsheetId_1, sheetName_1) {
44
+ return tslib_1.__awaiter(this, arguments, void 0, function* (spreadsheetId, sheetName, { batchSize = 1000, } = {}) {
45
+ var _a, _b;
46
+ const getValues = (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (index = 0) {
47
+ return this.googleSheets.spreadsheets.values.get({
48
+ spreadsheetId,
49
+ range: `${sheetName}!A${1 + index * batchSize}:AG${(index + 1) * batchSize}`,
50
+ }).then(res => res.data.values).catch((error) => {
51
+ // MEMO(@NozomuMiyamoto): 正規表現で下記のエラーを検知して、エラーをthrowする
52
+ // Range ('sheetName'!A18001:AG19000) exceeds grid limits. Max rows: 17595, max columns: 24
53
+ if (error.message.startsWith(`Range ('${sheetName}'!A${1 + index * batchSize}:AG${(index + 1) * batchSize}) exceeds grid limits.`)) {
54
+ return [];
55
+ }
56
+ throw error;
57
+ });
58
+ });
59
+ const values = [];
60
+ let index = 0;
61
+ let batch = yield getValues(index);
62
+ while (batch) {
63
+ values.push(...batch);
64
+ batch = yield getValues(++index);
65
+ if (!((_a = batch === null || batch === void 0 ? void 0 : batch[0]) === null || _a === void 0 ? void 0 : _a[0]) || ((_b = batch === null || batch === void 0 ? void 0 : batch[0]) === null || _b === void 0 ? void 0 : _b[0]) === '')
66
+ break;
67
+ }
68
+ return values;
69
+ });
70
+ }
71
+ listRecords(spreadsheetId, sheetName) {
72
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
73
+ const rows = yield this.getRows(spreadsheetId, sheetName);
74
+ const [header, ...records] = rows;
75
+ return records.map(record => record.reduce((acc, value, index) => {
76
+ acc[header[index]] = value;
77
+ return acc;
78
+ }, {}));
79
+ });
80
+ }
81
+ addSheet(spreadsheetId, name) {
82
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
83
+ return this.googleSheets.spreadsheets.batchUpdate({
84
+ spreadsheetId,
85
+ requestBody: {
86
+ requests: [
87
+ {
88
+ addSheet: {
89
+ properties: {
90
+ title: name,
91
+ },
92
+ },
93
+ },
94
+ ],
95
+ },
96
+ });
97
+ });
98
+ }
99
+ copyTo(spreadsheetId, sheetId) {
100
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
101
+ return this.googleSheets.spreadsheets.sheets.copyTo({
102
+ spreadsheetId,
103
+ sheetId,
104
+ requestBody: {
105
+ destinationSpreadsheetId: spreadsheetId,
106
+ },
107
+ }).then(res => res.data);
108
+ });
109
+ }
110
+ deleteRows(spreadsheetId_1, sheetName_1) {
111
+ return tslib_1.__awaiter(this, arguments, void 0, function* (spreadsheetId, sheetName, range = 'A1:AG1000') {
112
+ return this.googleSheets.spreadsheets.values.clear({
113
+ spreadsheetId,
114
+ range: `${sheetName}!${range}`,
115
+ });
116
+ });
117
+ }
118
+ updateRows(spreadsheetId, sheetName, rows) {
119
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
120
+ return this.googleSheets.spreadsheets.values.update({
121
+ spreadsheetId,
122
+ range: `${sheetName}!A1:E1000`,
123
+ valueInputOption: 'USER_ENTERED',
124
+ requestBody: {
125
+ values: rows,
126
+ },
127
+ }).then(res => res.data);
128
+ });
129
+ }
130
+ renameSheet(spreadsheetId, sheetId, name) {
131
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
132
+ return this.googleSheets.spreadsheets.batchUpdate({
133
+ spreadsheetId,
134
+ requestBody: {
135
+ requests: [
136
+ {
137
+ updateSheetProperties: {
138
+ properties: {
139
+ sheetId,
140
+ title: name,
141
+ },
142
+ fields: 'title',
143
+ },
144
+ },
145
+ ],
146
+ },
147
+ });
148
+ });
149
+ }
150
+ };
151
+ exports.SheetsService = SheetsService;
152
+ exports.SheetsService = SheetsService = tslib_1.__decorate([
153
+ (0, core_1.Injectable)({ providedIn: 'root' })
154
+ ], SheetsService);
155
+ //# sourceMappingURL=sheets.service.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheets.service.impl.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/spreadsheet/src/lib/sheets/sheets.service.impl.ts"],"names":[],"mappings":";;;AAcA,kDAKC;;AAnBD,wCAA6E;AAC7E,2CAAoC;AACpC,6DAA0C;AAC1C,qDAAkD;AASrC,QAAA,oBAAoB,GAAG,IAAI,qBAAc,CAAqB,sBAAsB,CAAC,CAAC;AAEnG,SAAgB,mBAAmB,CAAC,UAAoC;IACtE,OAAO;QACL,EAAE,OAAO,EAAE,4BAAoB,EAAE,UAAU,EAAE;QAC7C,EAAE,OAAO,EAAE,+BAAc,EAAE,QAAQ,EAAE,aAAa,EAAE;KACrD,CAAC;AACJ,CAAC;AAGM,IAAM,aAAa,GAAnB,MAAM,aAAa;IAAnB;QACG,WAAM,GAAG,IAAA,aAAM,EAAC,4BAAoB,CAAC,CAAC;QAEtC,SAAI,GAAG,IAAI,yBAAG,CAAC;YACrB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK;YACpC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG;YAChC,MAAM,EAAE,CAAC,8CAA8C,CAAC;SACzD,CAAC,CAAC;QAEK,iBAAY,GAAG,mBAAM,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAW,EAAE,CAAC,CAAC;IAuHlF,CAAC;IArHO,aAAa,CAAC,aAAqB;;YACvC,M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AE,OAAe,EAAE,IAAY;;YACpE,OAAO,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,WAAW,CAAC;gBAChD,aAAa;gBACb,WAAW,EAAE;oBACX,QAAQ,EAAE;wBACR;4BACE,qBAAqB,EAAE;gCACrB,UAAU,EAAE;oCACV,OAAO;oCACP,KAAK,EAAE,IAAI;iCACZ;gCACD,MAAM,EAAE,OAAO;6BAChB;yBACF;qBACF;iBACF;aACF,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAA;AAhIY,sCAAa;wBAAb,aAAa;IADzB,IAAA,iBAAU,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;GACtB,aAAa,CAgIzB"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SHEETS_SERVICE = void 0;
4
+ exports.injectSheetsService = injectSheetsService;
5
+ const core_1 = require("@angular/core");
6
+ exports.SHEETS_SERVICE = new core_1.InjectionToken('SHEETS_SERVICE');
7
+ function injectSheetsService() {
8
+ var _a;
9
+ return (_a = (0, core_1.inject)(exports.SHEETS_SERVICE, { optional: true })) !== null && _a !== void 0 ? _a : {};
10
+ }
11
+ //# sourceMappingURL=sheets.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheets.service.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/spreadsheet/src/lib/sheets/sheets.service.ts"],"names":[],"mappings":";;;AAKA,kDAEC;AAPD,wCAAuD;AAG1C,QAAA,cAAc,GAAG,IAAI,qBAAc,CAAgB,gBAAgB,CAAC,CAAC;AAElF,SAAgB,mBAAmB;;IACjC,OAAO,MAAA,IAAA,aAAM,EAAC,sBAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,mCAAI,EAAmB,CAAC;AAC3E,CAAC"}