@guardian/google-admanager-api 4.0.1 → 4.1.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/.nvmrc +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/client/services/creativeSet/creativeSet.service.d.ts +1 -1
- package/dist/client/services/creativeSet/creativeSet.service.d.ts.map +1 -1
- package/dist/client/services/creativeSet/creativeSet.service.js +2 -2
- package/dist/client/services/creativeSet/creativeSet.service.js.map +1 -1
- package/dist/client/services/creativeSet/creativeSetService.interface.d.ts +2 -2
- package/dist/client/services/creativeSet/creativeSetService.interface.d.ts.map +1 -1
- package/dist/common/constants/index.js +17 -7
- package/dist/common/constants/index.js.map +1 -1
- package/dist/common/utils/reports/reportResponse.js +17 -7
- package/dist/common/utils/reports/reportResponse.js.map +1 -1
- package/package.json +6 -6
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v22.15.0
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @guardian/google-admanager-api
|
|
2
2
|
|
|
3
|
+
## 4.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f7e415c: Bump version of typescript
|
|
8
|
+
- f728775: Bump version of google-auth
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- e171e67: Fixes the getCreativeSetsByStatement method by updating its statement parameter name
|
|
13
|
+
- e82f913: Bump axios version
|
|
14
|
+
|
|
3
15
|
## 4.0.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -6,7 +6,7 @@ export declare class CreativeSetService implements CreativeSetServiceOperations
|
|
|
6
6
|
private _client;
|
|
7
7
|
constructor(client: Client);
|
|
8
8
|
createCreativeSet(creativeSet: Partial<CreativeSet>): Promise<CreativeSet>;
|
|
9
|
-
getCreativeSetsByStatement(
|
|
9
|
+
getCreativeSetsByStatement(statement: Statement): Promise<CreativeSetPage>;
|
|
10
10
|
updateCreativeSet(creativeSet: CreativeSet): Promise<CreativeSet>;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=creativeSet.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creativeSet.service.d.ts","sourceRoot":"","sources":["../../../../lib/client/services/creativeSet/creativeSet.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF,qBAAa,kBAAmB,YAAW,4BAA4B;IACrE,OAAO,CAAC,OAAO,CAAS;gBAEZ,MAAM,EAAE,MAAM;IAIpB,iBAAiB,CACrB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,GAChC,OAAO,CAAC,WAAW,CAAC;IAIjB,0BAA0B,CAC9B,
|
|
1
|
+
{"version":3,"file":"creativeSet.service.d.ts","sourceRoot":"","sources":["../../../../lib/client/services/creativeSet/creativeSet.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF,qBAAa,kBAAmB,YAAW,4BAA4B;IACrE,OAAO,CAAC,OAAO,CAAS;gBAEZ,MAAM,EAAE,MAAM;IAIpB,iBAAiB,CACrB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,GAChC,OAAO,CAAC,WAAW,CAAC;IAIjB,0BAA0B,CAC9B,SAAS,EAAE,SAAS,GACnB,OAAO,CAAC,eAAe,CAAC;IAMrB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;CAGxE"}
|
|
@@ -8,9 +8,9 @@ class CreativeSetService {
|
|
|
8
8
|
async createCreativeSet(creativeSet) {
|
|
9
9
|
return this._client.createCreativeSet({ creativeSet });
|
|
10
10
|
}
|
|
11
|
-
async getCreativeSetsByStatement(
|
|
11
|
+
async getCreativeSetsByStatement(statement) {
|
|
12
12
|
return this._client.getCreativeSetsByStatement({
|
|
13
|
-
|
|
13
|
+
statement,
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
async updateCreativeSet(creativeSet) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creativeSet.service.js","sourceRoot":"","sources":["../../../../lib/client/services/creativeSet/creativeSet.service.ts"],"names":[],"mappings":";;;AAKA,MAAa,kBAAkB;IAG7B,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,WAAiC;QAEjC,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,0BAA0B,CAC9B,
|
|
1
|
+
{"version":3,"file":"creativeSet.service.js","sourceRoot":"","sources":["../../../../lib/client/services/creativeSet/creativeSet.service.ts"],"names":[],"mappings":";;;AAKA,MAAa,kBAAkB;IAG7B,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,WAAiC;QAEjC,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,0BAA0B,CAC9B,SAAoB;QAEpB,OAAO,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAAC;YAC7C,SAAS;SACV,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,WAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IACzD,CAAC;CACF;AAxBD,gDAwBC"}
|
|
@@ -24,10 +24,10 @@ export interface CreativeSetServiceOperations {
|
|
|
24
24
|
* | masterCreativeId | {@link https://developers.google.com/ad-manager/api/reference/v202505/CreativeSetService.CreativeSet#masterCreativeId CreativeSet.masterCreativeId} |
|
|
25
25
|
* | lastModifiedDateTime | {@link https://developers.google.com/ad-manager/api/reference/v202505/CreativeSetService.CreativeSet#lastModifiedDateTime CreativeSet.lastModifiedDateTime} |
|
|
26
26
|
*
|
|
27
|
-
* @param
|
|
27
|
+
* @param statement a Publisher Query Language statement used to filter a set of creative sets
|
|
28
28
|
* @returns the creative sets that match the given filter
|
|
29
29
|
*/
|
|
30
|
-
getCreativeSetsByStatement(
|
|
30
|
+
getCreativeSetsByStatement(statement: Statement): Promise<CreativeSetPage>;
|
|
31
31
|
/**
|
|
32
32
|
* Updates the specified {@link https://developers.google.com/ad-manager/api/reference/v202505/CreativeSetService.CreativeSet CreativeSet}.
|
|
33
33
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creativeSetService.interface.d.ts","sourceRoot":"","sources":["../../../../lib/client/services/creativeSet/creativeSetService.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,iBAAiB,CAAC,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAC3E;;;;;;;;;;;;;;;OAeG;IACH,0BAA0B,
|
|
1
|
+
{"version":3,"file":"creativeSetService.interface.d.ts","sourceRoot":"","sources":["../../../../lib/client/services/creativeSet/creativeSetService.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,iBAAiB,CAAC,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAC3E;;;;;;;;;;;;;;;OAeG;IACH,0BAA0B,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAC3E;;;;;OAKG;IACH,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CACnE"}
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.DEFAULT_API_VERSION = exports.DEFAULT_APPLICATION_NAME = exports.SCOPE = exports.SERVICE_MAP = void 0;
|
|
27
37
|
const SERVICE_MAP = __importStar(require("../../client/services"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/common/constants/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/common/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAAqD;AAE5C,kCAAW;AAEP,QAAA,KAAK,GAAG,qCAAqC,CAAC;AAC9C,QAAA,wBAAwB,GAAG,iBAAiB,CAAC;AAC7C,QAAA,mBAAmB,GAAG,SAAS,CAAC"}
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.ReportResponse = void 0;
|
|
27
37
|
const fs = __importStar(require("fs"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reportResponse.js","sourceRoot":"","sources":["../../../../lib/common/utils/reports/reportResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reportResponse.js","sourceRoot":"","sources":["../../../../lib/common/utils/reports/reportResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,+CAAiC;AACjC,+BAAiC;AAEjC,6CAA4E;AAE5E;;GAEG;AACH,MAAa,cAAc;IAGzB,YAAY,QAAuB;QACjC,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;YACrB,MAAM,IAAI,gCAAqB,CAAC,0BAA0B,CAAC,CAAC;QAC9D,CAAC;QAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,IAAI,CAAC,IAAY;QAC5B,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAE1B,MAAM,gBAAgB,GAAG,IAAA,gBAAS,EAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACpD,MAAM,MAAM,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAE1C,IAAI,CAAC;YACH,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAChC,MAAM,gBAAgB,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,IAAI,8BAAmB,CAC3B,8DAA8D,EAC9D,GAAY,CACb,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;OAEG;IACK,kBAAkB;QACxB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE,CAAC;YAC1B,MAAM,IAAI,8BAAmB,CAC3B,gDAAgD,CACjD,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AA3CD,wCA2CC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/google-admanager-api",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Google Ad Manager API Client Library for NodeJs",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
],
|
|
26
26
|
"homepage": "https://github.com/guardian/google-admanager-api#readme",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"axios": "^1.
|
|
29
|
-
"google-auth-library": "^
|
|
28
|
+
"axios": "^1.10.0",
|
|
29
|
+
"google-auth-library": "^10.1.0",
|
|
30
30
|
"soap": "1.1.12",
|
|
31
31
|
"superstruct": "^2.0.2"
|
|
32
32
|
},
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"@changesets/cli": "^2.27.7",
|
|
35
35
|
"@guardian/eslint-config": "^11.0.0",
|
|
36
36
|
"@guardian/prettier": "^8.0.1",
|
|
37
|
-
"@types/jest": "^
|
|
37
|
+
"@types/jest": "^30.0.0",
|
|
38
38
|
"@types/node": "^22.14.1",
|
|
39
39
|
"eslint": "^9.19.0",
|
|
40
|
-
"jest": "^
|
|
40
|
+
"jest": "^30.0.3",
|
|
41
41
|
"open": "^10.1.0",
|
|
42
42
|
"prettier": "^3.3.3",
|
|
43
43
|
"server-destroy": "^1.0.1",
|
|
44
44
|
"ts-jest": "^29.0.5",
|
|
45
45
|
"ts-node": "^10.7.0",
|
|
46
46
|
"tsconfig-paths": "^4.2.0",
|
|
47
|
-
"typescript": "5.
|
|
47
|
+
"typescript": "5.8.3"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"admanager",
|