firebase-functions 3.17.1 → 3.17.2

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.
@@ -2,7 +2,7 @@ import { Request, Response } from 'express';
2
2
  import { DeploymentOptions, FailurePolicy, Schedule } from './function-configuration';
3
3
  export { Request, Response };
4
4
  import { Duration } from './common/encoding';
5
- import { ManifestEndpoint, ManifestRequiredAPI } from './common/manifest';
5
+ import { ManifestEndpoint, ManifestRequiredAPI } from './runtime/manifest';
6
6
  /**
7
7
  * @hidden
8
8
  *
@@ -1,6 +1,6 @@
1
1
  import * as express from 'express';
2
2
  import { HttpsFunction, Runnable } from '../cloud-functions';
3
- import { ManifestEndpoint, ManifestRequiredAPI } from '../common/manifest';
3
+ import { ManifestEndpoint, ManifestRequiredAPI } from '../runtime/manifest';
4
4
  import { CallableContext, FunctionsErrorCode, HttpsError, Request, TaskContext, TaskRateLimits, TaskRetryConfig } from '../common/providers/https';
5
5
  import { DeploymentOptions } from '../function-configuration';
6
6
  export { Request, CallableContext, FunctionsErrorCode, HttpsError,
@@ -1 +1,55 @@
1
- export {};
1
+ /**
2
+ * An definition of a function as appears in the Manifest.
3
+ */
4
+ export interface ManifestEndpoint {
5
+ entryPoint?: string;
6
+ region?: string[];
7
+ platform?: string;
8
+ availableMemoryMb?: number;
9
+ maxInstances?: number;
10
+ minInstances?: number;
11
+ concurrency?: number;
12
+ serviceAccountEmail?: string;
13
+ timeoutSeconds?: number;
14
+ vpc?: {
15
+ connector: string;
16
+ egressSettings?: string;
17
+ };
18
+ labels?: Record<string, string>;
19
+ ingressSettings?: string;
20
+ environmentVariables?: Record<string, string>;
21
+ httpsTrigger?: {
22
+ invoker?: string[];
23
+ };
24
+ callableTrigger?: {};
25
+ eventTrigger?: {
26
+ eventFilters: Record<string, string>;
27
+ eventType: string;
28
+ retry: boolean;
29
+ region?: string;
30
+ serviceAccountEmail?: string;
31
+ };
32
+ scheduleTrigger?: {
33
+ schedule?: string;
34
+ timezone?: string;
35
+ retryConfig?: {
36
+ retryCount?: number;
37
+ maxRetryDuration?: string;
38
+ minBackoffDuration?: string;
39
+ maxBackoffDuration?: string;
40
+ maxDoublings?: number;
41
+ };
42
+ };
43
+ }
44
+ export interface ManifestRequiredAPI {
45
+ api: string;
46
+ reason: string;
47
+ }
48
+ /**
49
+ * An definition of a function deployment as appears in the Manifest.
50
+ **/
51
+ export interface ManifestStack {
52
+ specVersion: 'v1alpha1';
53
+ requiredAPIs: ManifestRequiredAPI[];
54
+ endpoints: Record<string, ManifestEndpoint>;
55
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-functions",
3
- "version": "3.17.1",
3
+ "version": "3.17.2",
4
4
  "description": "Firebase SDK for Cloud Functions",
5
5
  "keywords": [
6
6
  "firebase",
@@ -1,47 +0,0 @@
1
- /**
2
- * An definition of a function as appears in the Manifest.
3
- */
4
- export interface ManifestEndpoint {
5
- entryPoint?: string;
6
- region?: string[];
7
- platform?: string;
8
- availableMemoryMb?: number;
9
- maxInstances?: number;
10
- minInstances?: number;
11
- concurrency?: number;
12
- serviceAccountEmail?: string;
13
- timeoutSeconds?: number;
14
- vpc?: {
15
- connector: string;
16
- egressSettings?: string;
17
- };
18
- labels?: Record<string, string>;
19
- ingressSettings?: string;
20
- environmentVariables?: Record<string, string>;
21
- httpsTrigger?: {
22
- invoker?: string[];
23
- };
24
- callableTrigger?: {};
25
- eventTrigger?: {
26
- eventFilters: Record<string, string>;
27
- eventType: string;
28
- retry: boolean;
29
- region?: string;
30
- serviceAccountEmail?: string;
31
- };
32
- scheduleTrigger?: {
33
- schedule?: string;
34
- timezone?: string;
35
- retryConfig?: {
36
- retryCount?: number;
37
- maxRetryDuration?: string;
38
- minBackoffDuration?: string;
39
- maxBackoffDuration?: string;
40
- maxDoublings?: number;
41
- };
42
- };
43
- }
44
- export interface ManifestRequiredAPI {
45
- api: string;
46
- reason: string;
47
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });