@googleapis/merchantapi 1.0.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +28 -0
  3. package/accounts_v1beta.ts +5692 -0
  4. package/build/accounts_v1beta.d.ts +2492 -0
  5. package/build/accounts_v1beta.js +1421 -0
  6. package/build/accounts_v1beta.js.map +1 -0
  7. package/build/conversions_v1beta.d.ts +406 -0
  8. package/build/conversions_v1beta.js +251 -0
  9. package/build/conversions_v1beta.js.map +1 -0
  10. package/build/datasources_v1beta.d.ts +502 -0
  11. package/build/datasources_v1beta.js +251 -0
  12. package/build/datasources_v1beta.js.map +1 -0
  13. package/build/index.d.ts +57 -0
  14. package/build/index.js +58 -0
  15. package/build/index.js.map +1 -0
  16. package/build/inventories_v1beta.d.ts +456 -0
  17. package/build/inventories_v1beta.js +272 -0
  18. package/build/inventories_v1beta.js.map +1 -0
  19. package/build/lfp_v1beta.d.ts +486 -0
  20. package/build/lfp_v1beta.js +265 -0
  21. package/build/lfp_v1beta.js.map +1 -0
  22. package/build/notifications_v1beta.d.ts +301 -0
  23. package/build/notifications_v1beta.js +224 -0
  24. package/build/notifications_v1beta.js.map +1 -0
  25. package/build/products_v1beta.d.ts +1204 -0
  26. package/build/products_v1beta.js +194 -0
  27. package/build/products_v1beta.js.map +1 -0
  28. package/build/promotions_v1beta.d.ts +524 -0
  29. package/build/promotions_v1beta.js +155 -0
  30. package/build/promotions_v1beta.js.map +1 -0
  31. package/build/quota_v1beta.d.ts +225 -0
  32. package/build/quota_v1beta.js +91 -0
  33. package/build/quota_v1beta.js.map +1 -0
  34. package/build/reports_v1beta.d.ts +1001 -0
  35. package/build/reports_v1beta.js +91 -0
  36. package/build/reports_v1beta.js.map +1 -0
  37. package/conversions_v1beta.ts +926 -0
  38. package/datasources_v1beta.ts +1016 -0
  39. package/index.ts +161 -0
  40. package/inventories_v1beta.ts +1002 -0
  41. package/lfp_v1beta.ts +1012 -0
  42. package/notifications_v1beta.ts +768 -0
  43. package/package.json +43 -0
  44. package/products_v1beta.ts +1573 -0
  45. package/promotions_v1beta.ts +814 -0
  46. package/quota_v1beta.ts +365 -0
  47. package/reports_v1beta.ts +1137 -0
  48. package/tsconfig.json +10 -0
  49. package/webpack.config.js +79 -0
package/index.ts ADDED
@@ -0,0 +1,161 @@
1
+ // Copyright 2020 Google LLC
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+
14
+ /*! THIS FILE IS AUTO-GENERATED */
15
+
16
+ import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common';
17
+ import {merchantapi_accounts_v1beta} from './accounts_v1beta';
18
+ import {merchantapi_conversions_v1beta} from './conversions_v1beta';
19
+ import {merchantapi_datasources_v1beta} from './datasources_v1beta';
20
+ import {merchantapi_inventories_v1beta} from './inventories_v1beta';
21
+ import {merchantapi_lfp_v1beta} from './lfp_v1beta';
22
+ import {merchantapi_notifications_v1beta} from './notifications_v1beta';
23
+ import {merchantapi_products_v1beta} from './products_v1beta';
24
+ import {merchantapi_promotions_v1beta} from './promotions_v1beta';
25
+ import {merchantapi_quota_v1beta} from './quota_v1beta';
26
+ import {merchantapi_reports_v1beta} from './reports_v1beta';
27
+
28
+ export const VERSIONS = {
29
+ accounts_v1beta: merchantapi_accounts_v1beta.Merchantapi,
30
+ conversions_v1beta: merchantapi_conversions_v1beta.Merchantapi,
31
+ datasources_v1beta: merchantapi_datasources_v1beta.Merchantapi,
32
+ inventories_v1beta: merchantapi_inventories_v1beta.Merchantapi,
33
+ lfp_v1beta: merchantapi_lfp_v1beta.Merchantapi,
34
+ notifications_v1beta: merchantapi_notifications_v1beta.Merchantapi,
35
+ products_v1beta: merchantapi_products_v1beta.Merchantapi,
36
+ promotions_v1beta: merchantapi_promotions_v1beta.Merchantapi,
37
+ quota_v1beta: merchantapi_quota_v1beta.Merchantapi,
38
+ reports_v1beta: merchantapi_reports_v1beta.Merchantapi,
39
+ };
40
+
41
+ export function merchantapi(
42
+ version: 'accounts_v1beta'
43
+ ): merchantapi_accounts_v1beta.Merchantapi;
44
+ export function merchantapi(
45
+ options: merchantapi_accounts_v1beta.Options
46
+ ): merchantapi_accounts_v1beta.Merchantapi;
47
+ export function merchantapi(
48
+ version: 'conversions_v1beta'
49
+ ): merchantapi_conversions_v1beta.Merchantapi;
50
+ export function merchantapi(
51
+ options: merchantapi_conversions_v1beta.Options
52
+ ): merchantapi_conversions_v1beta.Merchantapi;
53
+ export function merchantapi(
54
+ version: 'datasources_v1beta'
55
+ ): merchantapi_datasources_v1beta.Merchantapi;
56
+ export function merchantapi(
57
+ options: merchantapi_datasources_v1beta.Options
58
+ ): merchantapi_datasources_v1beta.Merchantapi;
59
+ export function merchantapi(
60
+ version: 'inventories_v1beta'
61
+ ): merchantapi_inventories_v1beta.Merchantapi;
62
+ export function merchantapi(
63
+ options: merchantapi_inventories_v1beta.Options
64
+ ): merchantapi_inventories_v1beta.Merchantapi;
65
+ export function merchantapi(
66
+ version: 'lfp_v1beta'
67
+ ): merchantapi_lfp_v1beta.Merchantapi;
68
+ export function merchantapi(
69
+ options: merchantapi_lfp_v1beta.Options
70
+ ): merchantapi_lfp_v1beta.Merchantapi;
71
+ export function merchantapi(
72
+ version: 'notifications_v1beta'
73
+ ): merchantapi_notifications_v1beta.Merchantapi;
74
+ export function merchantapi(
75
+ options: merchantapi_notifications_v1beta.Options
76
+ ): merchantapi_notifications_v1beta.Merchantapi;
77
+ export function merchantapi(
78
+ version: 'products_v1beta'
79
+ ): merchantapi_products_v1beta.Merchantapi;
80
+ export function merchantapi(
81
+ options: merchantapi_products_v1beta.Options
82
+ ): merchantapi_products_v1beta.Merchantapi;
83
+ export function merchantapi(
84
+ version: 'promotions_v1beta'
85
+ ): merchantapi_promotions_v1beta.Merchantapi;
86
+ export function merchantapi(
87
+ options: merchantapi_promotions_v1beta.Options
88
+ ): merchantapi_promotions_v1beta.Merchantapi;
89
+ export function merchantapi(
90
+ version: 'quota_v1beta'
91
+ ): merchantapi_quota_v1beta.Merchantapi;
92
+ export function merchantapi(
93
+ options: merchantapi_quota_v1beta.Options
94
+ ): merchantapi_quota_v1beta.Merchantapi;
95
+ export function merchantapi(
96
+ version: 'reports_v1beta'
97
+ ): merchantapi_reports_v1beta.Merchantapi;
98
+ export function merchantapi(
99
+ options: merchantapi_reports_v1beta.Options
100
+ ): merchantapi_reports_v1beta.Merchantapi;
101
+ export function merchantapi<
102
+ T =
103
+ | merchantapi_accounts_v1beta.Merchantapi
104
+ | merchantapi_conversions_v1beta.Merchantapi
105
+ | merchantapi_datasources_v1beta.Merchantapi
106
+ | merchantapi_inventories_v1beta.Merchantapi
107
+ | merchantapi_lfp_v1beta.Merchantapi
108
+ | merchantapi_notifications_v1beta.Merchantapi
109
+ | merchantapi_products_v1beta.Merchantapi
110
+ | merchantapi_promotions_v1beta.Merchantapi
111
+ | merchantapi_quota_v1beta.Merchantapi
112
+ | merchantapi_reports_v1beta.Merchantapi,
113
+ >(
114
+ this: GoogleConfigurable,
115
+ versionOrOptions:
116
+ | 'accounts_v1beta'
117
+ | merchantapi_accounts_v1beta.Options
118
+ | 'conversions_v1beta'
119
+ | merchantapi_conversions_v1beta.Options
120
+ | 'datasources_v1beta'
121
+ | merchantapi_datasources_v1beta.Options
122
+ | 'inventories_v1beta'
123
+ | merchantapi_inventories_v1beta.Options
124
+ | 'lfp_v1beta'
125
+ | merchantapi_lfp_v1beta.Options
126
+ | 'notifications_v1beta'
127
+ | merchantapi_notifications_v1beta.Options
128
+ | 'products_v1beta'
129
+ | merchantapi_products_v1beta.Options
130
+ | 'promotions_v1beta'
131
+ | merchantapi_promotions_v1beta.Options
132
+ | 'quota_v1beta'
133
+ | merchantapi_quota_v1beta.Options
134
+ | 'reports_v1beta'
135
+ | merchantapi_reports_v1beta.Options
136
+ ) {
137
+ return getAPI<T>('merchantapi', versionOrOptions, VERSIONS, this);
138
+ }
139
+
140
+ const auth = new AuthPlus();
141
+ export {auth};
142
+ export {merchantapi_accounts_v1beta};
143
+ export {merchantapi_conversions_v1beta};
144
+ export {merchantapi_datasources_v1beta};
145
+ export {merchantapi_inventories_v1beta};
146
+ export {merchantapi_lfp_v1beta};
147
+ export {merchantapi_notifications_v1beta};
148
+ export {merchantapi_products_v1beta};
149
+ export {merchantapi_promotions_v1beta};
150
+ export {merchantapi_quota_v1beta};
151
+ export {merchantapi_reports_v1beta};
152
+ export {
153
+ AuthPlus,
154
+ GlobalOptions,
155
+ APIRequestContext,
156
+ GoogleConfigurable,
157
+ StreamMethodOptions,
158
+ GaxiosPromise,
159
+ MethodOptions,
160
+ BodyResponseCallback,
161
+ } from 'googleapis-common';