@stevenkellner/team-conduct-api 2.0.14 → 2.0.16
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/lib/src/firebase/FirebaseConfiguration.d.ts +5 -0
- package/lib/src/firebase/FirebaseConfiguration.js +7 -0
- package/lib/src/firebase/Firestore.d.ts +2 -1
- package/lib/src/firebase/Firestore.js +4 -0
- package/lib/src/functions/firebaseFunctionsContext.d.ts +1 -34
- package/lib/src/functions/firebaseFunctionsContext.js +33 -33
- package/lib/test/firebase/FirebaseConfiguration.test.js +3 -0
- package/lib/test/firebase/firebase-utils.js +1 -0
- package/package.json +2 -2
- package/src/firebase/FirebaseConfiguration.ts +12 -0
- package/src/firebase/Firestore.ts +5 -1
- package/src/functions/firebaseFunctionsContext.ts +41 -40
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FirestoreScheme } from './FirestoreScheme';
|
|
2
2
|
import { Messaging } from './Messaging';
|
|
3
|
+
import { Firestore as FirebaseFirestore } from 'firebase-admin/firestore';
|
|
3
4
|
/**
|
|
4
5
|
* Singleton configuration manager for Firebase services.
|
|
5
6
|
*
|
|
@@ -12,6 +13,7 @@ export declare class FirebaseConfiguration {
|
|
|
12
13
|
*/
|
|
13
14
|
static readonly shared: FirebaseConfiguration;
|
|
14
15
|
private configured;
|
|
16
|
+
private _firebaseFirestore;
|
|
15
17
|
private _baseFirestoreDocument;
|
|
16
18
|
private _messaging;
|
|
17
19
|
/**
|
|
@@ -28,6 +30,7 @@ export declare class FirebaseConfiguration {
|
|
|
28
30
|
* @throws Error if already configured
|
|
29
31
|
*/
|
|
30
32
|
configure(configuration: {
|
|
33
|
+
firebaseFirestore: FirebaseFirestore;
|
|
31
34
|
baseFirestoreDocument: FirestoreScheme;
|
|
32
35
|
messaging: Messaging;
|
|
33
36
|
}): void;
|
|
@@ -39,9 +42,11 @@ export declare class FirebaseConfiguration {
|
|
|
39
42
|
* @param configuration - New configuration object containing Firestore and Messaging services
|
|
40
43
|
*/
|
|
41
44
|
reconfigure(configuration: {
|
|
45
|
+
firebaseFirestore: FirebaseFirestore;
|
|
42
46
|
baseFirestoreDocument: FirestoreScheme;
|
|
43
47
|
messaging: Messaging;
|
|
44
48
|
}): void;
|
|
49
|
+
get firebaseFirestore(): FirebaseFirestore;
|
|
45
50
|
/**
|
|
46
51
|
* Gets the base Firestore document reference.
|
|
47
52
|
*
|
|
@@ -13,6 +13,7 @@ class FirebaseConfiguration {
|
|
|
13
13
|
*/
|
|
14
14
|
static shared = new FirebaseConfiguration();
|
|
15
15
|
configured = false;
|
|
16
|
+
_firebaseFirestore = null;
|
|
16
17
|
_baseFirestoreDocument = null;
|
|
17
18
|
_messaging = null;
|
|
18
19
|
/**
|
|
@@ -31,6 +32,7 @@ class FirebaseConfiguration {
|
|
|
31
32
|
configure(configuration) {
|
|
32
33
|
if (this.configured)
|
|
33
34
|
throw new Error('Configuration is already configured');
|
|
35
|
+
this._firebaseFirestore = configuration.firebaseFirestore;
|
|
34
36
|
this._baseFirestoreDocument = configuration.baseFirestoreDocument;
|
|
35
37
|
this._messaging = configuration.messaging;
|
|
36
38
|
this.configured = true;
|
|
@@ -46,6 +48,11 @@ class FirebaseConfiguration {
|
|
|
46
48
|
this.configured = false;
|
|
47
49
|
this.configure(configuration);
|
|
48
50
|
}
|
|
51
|
+
get firebaseFirestore() {
|
|
52
|
+
if (!this.configured || !this._firebaseFirestore)
|
|
53
|
+
throw new Error('Configuration.firebaseFirestore is not configured');
|
|
54
|
+
return this._firebaseFirestore;
|
|
55
|
+
}
|
|
49
56
|
/**
|
|
50
57
|
* Gets the base Firestore document reference.
|
|
51
58
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FirestoreCollection, FirestoreDocument, UserAuthId } from '@stevenkellner/firebase-function';
|
|
1
|
+
import { FirestoreBatch, FirestoreCollection, FirestoreDocument, UserAuthId } from '@stevenkellner/firebase-function';
|
|
2
2
|
import { FirestoreScheme } from './FirestoreScheme';
|
|
3
3
|
import { Fine, FineTemplate, Invitation, Person, User, Team } from '../types';
|
|
4
4
|
/**
|
|
@@ -68,6 +68,7 @@ export declare class Firestore {
|
|
|
68
68
|
* @private
|
|
69
69
|
*/
|
|
70
70
|
protected get base(): FirestoreScheme;
|
|
71
|
+
batch(): FirestoreBatch;
|
|
71
72
|
/**
|
|
72
73
|
* Gets a reference to a team document.
|
|
73
74
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Firestore = void 0;
|
|
4
|
+
const firebase_function_1 = require("@stevenkellner/firebase-function");
|
|
4
5
|
const _1 = require(".");
|
|
5
6
|
/**
|
|
6
7
|
* Accessor class for Firestore documents and collections.
|
|
@@ -75,6 +76,9 @@ class Firestore {
|
|
|
75
76
|
get base() {
|
|
76
77
|
return _1.FirebaseConfiguration.shared.baseFirestoreDocument;
|
|
77
78
|
}
|
|
79
|
+
batch() {
|
|
80
|
+
return new firebase_function_1.FirestoreBatch(_1.FirebaseConfiguration.shared.firebaseFirestore);
|
|
81
|
+
}
|
|
78
82
|
/**
|
|
79
83
|
* Gets a reference to a team document.
|
|
80
84
|
*
|
|
@@ -1,40 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserRegisterFunction } from '.';
|
|
2
2
|
export declare const firebaseFunctionsContext: {
|
|
3
|
-
team: {
|
|
4
|
-
new: import("@stevenkellner/firebase-function").FirebaseFunctionContext<TeamNewFunction.Parameters, import("..").User>;
|
|
5
|
-
};
|
|
6
3
|
user: {
|
|
7
4
|
login: import("@stevenkellner/firebase-function").FirebaseFunctionContext<null, import("..").User>;
|
|
8
5
|
register: import("@stevenkellner/firebase-function").FirebaseFunctionContext<UserRegisterFunction.Parameters, import("..").User>;
|
|
9
6
|
};
|
|
10
|
-
paypalMe: {
|
|
11
|
-
edit: import("@stevenkellner/firebase-function").FirebaseFunctionContext<PaypalMeEditFunction.Parameters, void>;
|
|
12
|
-
};
|
|
13
|
-
notification: {
|
|
14
|
-
register: import("@stevenkellner/firebase-function").FirebaseFunctionContext<NotificationRegisterFunction.Parameters, void>;
|
|
15
|
-
subscribe: import("@stevenkellner/firebase-function").FirebaseFunctionContext<NotificationSubscribeFunction.Parameters, void>;
|
|
16
|
-
};
|
|
17
|
-
invitation: {
|
|
18
|
-
invite: import("@stevenkellner/firebase-function").FirebaseFunctionContext<import("..").Invitation, import("@stevenkellner/typescript-common-functionality").Tagged<string, "invitation">>;
|
|
19
|
-
withdraw: import("@stevenkellner/firebase-function").FirebaseFunctionContext<import("..").Invitation, void>;
|
|
20
|
-
getInvitation: import("@stevenkellner/firebase-function").FirebaseFunctionContext<import("@stevenkellner/typescript-common-functionality").Tagged<string, "invitation">, InvitationGetInvitationFunction.ReturnType>;
|
|
21
|
-
register: import("@stevenkellner/firebase-function").FirebaseFunctionContext<InvitationRegisterFunction.Parameters, import("..").User>;
|
|
22
|
-
};
|
|
23
|
-
person: {
|
|
24
|
-
add: import("@stevenkellner/firebase-function").FirebaseFunctionContext<PersonAddFunction.Parameters, void>;
|
|
25
|
-
update: import("@stevenkellner/firebase-function").FirebaseFunctionContext<PersonUpdateFunction.Parameters, void>;
|
|
26
|
-
delete: import("@stevenkellner/firebase-function").FirebaseFunctionContext<PersonDeleteFunction.Parameters, void>;
|
|
27
|
-
kickout: import("@stevenkellner/firebase-function").FirebaseFunctionContext<UserKickoutFunction.Parameters, void>;
|
|
28
|
-
roleEdit: import("@stevenkellner/firebase-function").FirebaseFunctionContext<UserRoleEditFunction.Parameters, void>;
|
|
29
|
-
};
|
|
30
|
-
fineTemplate: {
|
|
31
|
-
add: import("@stevenkellner/firebase-function").FirebaseFunctionContext<FineTemplateAddFunction.Parameters, void>;
|
|
32
|
-
update: import("@stevenkellner/firebase-function").FirebaseFunctionContext<FineTemplateUpdateFunction.Parameters, void>;
|
|
33
|
-
delete: import("@stevenkellner/firebase-function").FirebaseFunctionContext<FineTemplateDeleteFunction.Parameters, void>;
|
|
34
|
-
};
|
|
35
|
-
fine: {
|
|
36
|
-
add: import("@stevenkellner/firebase-function").FirebaseFunctionContext<FineAddFunction.Parameters, void>;
|
|
37
|
-
update: import("@stevenkellner/firebase-function").FirebaseFunctionContext<FineUpdateFunction.Parameters, void>;
|
|
38
|
-
delete: import("@stevenkellner/firebase-function").FirebaseFunctionContext<FineDeleteFunction.Parameters, void>;
|
|
39
|
-
};
|
|
40
7
|
};
|
|
@@ -4,41 +4,41 @@ exports.firebaseFunctionsContext = void 0;
|
|
|
4
4
|
const firebase_function_1 = require("@stevenkellner/firebase-function");
|
|
5
5
|
const _1 = require(".");
|
|
6
6
|
exports.firebaseFunctionsContext = firebase_function_1.FirebaseFunctionsContext.build(builder => ({
|
|
7
|
-
team: {
|
|
8
|
-
|
|
9
|
-
},
|
|
7
|
+
// team: {
|
|
8
|
+
// new: builder.function(TeamNewFunction)
|
|
9
|
+
// },
|
|
10
10
|
user: {
|
|
11
11
|
login: builder.function(_1.UserLoginFunction),
|
|
12
12
|
register: builder.function(_1.UserRegisterFunction)
|
|
13
|
-
},
|
|
14
|
-
paypalMe: {
|
|
15
|
-
edit: builder.function(_1.PaypalMeEditFunction)
|
|
16
|
-
},
|
|
17
|
-
notification: {
|
|
18
|
-
register: builder.function(_1.NotificationRegisterFunction),
|
|
19
|
-
subscribe: builder.function(_1.NotificationSubscribeFunction)
|
|
20
|
-
},
|
|
21
|
-
invitation: {
|
|
22
|
-
invite: builder.function(_1.InvitationInviteFunction),
|
|
23
|
-
withdraw: builder.function(_1.InvitationWithdrawFunction),
|
|
24
|
-
getInvitation: builder.function(_1.InvitationGetInvitationFunction),
|
|
25
|
-
register: builder.function(_1.InvitationRegisterFunction)
|
|
26
|
-
},
|
|
27
|
-
person: {
|
|
28
|
-
add: builder.function(_1.PersonAddFunction),
|
|
29
|
-
update: builder.function(_1.PersonUpdateFunction),
|
|
30
|
-
delete: builder.function(_1.PersonDeleteFunction),
|
|
31
|
-
kickout: builder.function(_1.UserKickoutFunction),
|
|
32
|
-
roleEdit: builder.function(_1.UserRoleEditFunction)
|
|
33
|
-
},
|
|
34
|
-
fineTemplate: {
|
|
35
|
-
add: builder.function(_1.FineTemplateAddFunction),
|
|
36
|
-
update: builder.function(_1.FineTemplateUpdateFunction),
|
|
37
|
-
delete: builder.function(_1.FineTemplateDeleteFunction)
|
|
38
|
-
},
|
|
39
|
-
fine: {
|
|
40
|
-
add: builder.function(_1.FineAddFunction),
|
|
41
|
-
update: builder.function(_1.FineUpdateFunction),
|
|
42
|
-
delete: builder.function(_1.FineDeleteFunction)
|
|
43
13
|
}
|
|
14
|
+
// paypalMe: {
|
|
15
|
+
// edit: builder.function(PaypalMeEditFunction)
|
|
16
|
+
// },
|
|
17
|
+
// notification: {
|
|
18
|
+
// register: builder.function(NotificationRegisterFunction),
|
|
19
|
+
// subscribe: builder.function(NotificationSubscribeFunction)
|
|
20
|
+
// },
|
|
21
|
+
// invitation: {
|
|
22
|
+
// invite: builder.function(InvitationInviteFunction),
|
|
23
|
+
// withdraw: builder.function(InvitationWithdrawFunction),
|
|
24
|
+
// getInvitation: builder.function(InvitationGetInvitationFunction),
|
|
25
|
+
// register: builder.function(InvitationRegisterFunction)
|
|
26
|
+
// },
|
|
27
|
+
// person: {
|
|
28
|
+
// add: builder.function(PersonAddFunction),
|
|
29
|
+
// update: builder.function(PersonUpdateFunction),
|
|
30
|
+
// delete: builder.function(PersonDeleteFunction),
|
|
31
|
+
// kickout: builder.function(UserKickoutFunction),
|
|
32
|
+
// roleEdit: builder.function(UserRoleEditFunction)
|
|
33
|
+
// },
|
|
34
|
+
// fineTemplate: {
|
|
35
|
+
// add: builder.function(FineTemplateAddFunction),
|
|
36
|
+
// update: builder.function(FineTemplateUpdateFunction),
|
|
37
|
+
// delete: builder.function(FineTemplateDeleteFunction)
|
|
38
|
+
// },
|
|
39
|
+
// fine: {
|
|
40
|
+
// add: builder.function(FineAddFunction),
|
|
41
|
+
// update: builder.function(FineUpdateFunction),
|
|
42
|
+
// delete: builder.function(FineDeleteFunction)
|
|
43
|
+
// }
|
|
44
44
|
}));
|
|
@@ -21,6 +21,7 @@ describe('FirebaseConfiguration', () => {
|
|
|
21
21
|
// For now, we'll test the error cases that don't require full configuration.
|
|
22
22
|
it('should throw error when configuring twice', () => {
|
|
23
23
|
// Create a mock configuration
|
|
24
|
+
const mockFirebaseFirestore = {};
|
|
24
25
|
const mockFirestore = {};
|
|
25
26
|
const mockMessaging = {
|
|
26
27
|
sendEachForMulticast: async () => ({
|
|
@@ -35,11 +36,13 @@ describe('FirebaseConfiguration', () => {
|
|
|
35
36
|
// If already configured, this should throw
|
|
36
37
|
try {
|
|
37
38
|
FirebaseConfiguration_1.FirebaseConfiguration.shared.configure({
|
|
39
|
+
firebaseFirestore: mockFirebaseFirestore,
|
|
38
40
|
baseFirestoreDocument: mockFirestore,
|
|
39
41
|
messaging: mockMessaging
|
|
40
42
|
});
|
|
41
43
|
// If it succeeds, try configuring again to test the double-configuration error
|
|
42
44
|
FirebaseConfiguration_1.FirebaseConfiguration.shared.configure({
|
|
45
|
+
firebaseFirestore: mockFirebaseFirestore,
|
|
43
46
|
baseFirestoreDocument: mockFirestore,
|
|
44
47
|
messaging: mockMessaging
|
|
45
48
|
});
|
|
@@ -127,6 +127,7 @@ async function expectThrowsFunctionsError(fn, expectedCode, message = null) {
|
|
|
127
127
|
}
|
|
128
128
|
function configureFirebase(collections, messaging) {
|
|
129
129
|
src_1.FirebaseConfiguration.shared.reconfigure({
|
|
130
|
+
firebaseFirestore: undefined,
|
|
130
131
|
baseFirestoreDocument: Document.colls(collections),
|
|
131
132
|
messaging: messaging
|
|
132
133
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stevenkellner/team-conduct-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
4
4
|
"description": "Firebase API for Team Conduct",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Steven Kellner",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"release": "npm run rebuild && npm run lint && npm version patch && git push --follow-tags"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@stevenkellner/firebase-function": "^1.4.
|
|
25
|
+
"@stevenkellner/firebase-function": "^1.4.144",
|
|
26
26
|
"@stevenkellner/typescript-common-functionality": "^1.0.61"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FirestoreScheme } from './FirestoreScheme';
|
|
2
2
|
import { Messaging } from './Messaging';
|
|
3
|
+
import { Firestore as FirebaseFirestore } from 'firebase-admin/firestore';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Singleton configuration manager for Firebase services.
|
|
@@ -16,6 +17,8 @@ export class FirebaseConfiguration {
|
|
|
16
17
|
|
|
17
18
|
private configured: boolean = false;
|
|
18
19
|
|
|
20
|
+
private _firebaseFirestore: FirebaseFirestore | null = null;
|
|
21
|
+
|
|
19
22
|
private _baseFirestoreDocument: FirestoreScheme | null = null;
|
|
20
23
|
|
|
21
24
|
private _messaging: Messaging | null = null;
|
|
@@ -35,11 +38,13 @@ export class FirebaseConfiguration {
|
|
|
35
38
|
* @throws Error if already configured
|
|
36
39
|
*/
|
|
37
40
|
public configure(configuration: {
|
|
41
|
+
firebaseFirestore: FirebaseFirestore,
|
|
38
42
|
baseFirestoreDocument: FirestoreScheme,
|
|
39
43
|
messaging: Messaging
|
|
40
44
|
}) {
|
|
41
45
|
if (this.configured)
|
|
42
46
|
throw new Error('Configuration is already configured');
|
|
47
|
+
this._firebaseFirestore = configuration.firebaseFirestore;
|
|
43
48
|
this._baseFirestoreDocument = configuration.baseFirestoreDocument;
|
|
44
49
|
this._messaging = configuration.messaging;
|
|
45
50
|
this.configured = true;
|
|
@@ -53,6 +58,7 @@ export class FirebaseConfiguration {
|
|
|
53
58
|
* @param configuration - New configuration object containing Firestore and Messaging services
|
|
54
59
|
*/
|
|
55
60
|
public reconfigure(configuration: {
|
|
61
|
+
firebaseFirestore: FirebaseFirestore,
|
|
56
62
|
baseFirestoreDocument: FirestoreScheme,
|
|
57
63
|
messaging: Messaging
|
|
58
64
|
}) {
|
|
@@ -60,6 +66,12 @@ export class FirebaseConfiguration {
|
|
|
60
66
|
this.configure(configuration);
|
|
61
67
|
}
|
|
62
68
|
|
|
69
|
+
public get firebaseFirestore(): FirebaseFirestore {
|
|
70
|
+
if (!this.configured || !this._firebaseFirestore)
|
|
71
|
+
throw new Error('Configuration.firebaseFirestore is not configured');
|
|
72
|
+
return this._firebaseFirestore;
|
|
73
|
+
}
|
|
74
|
+
|
|
63
75
|
/**
|
|
64
76
|
* Gets the base Firestore document reference.
|
|
65
77
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FirestoreCollection, FirestoreDocument, UserAuthId } from '@stevenkellner/firebase-function';
|
|
1
|
+
import { FirestoreBatch, FirestoreCollection, FirestoreDocument, UserAuthId } from '@stevenkellner/firebase-function';
|
|
2
2
|
import { FirestoreScheme } from './FirestoreScheme';
|
|
3
3
|
import { Fine, FineTemplate, Invitation, Person, User, Team } from '../types';
|
|
4
4
|
import { FirebaseConfiguration } from '.';
|
|
@@ -81,6 +81,10 @@ export class Firestore {
|
|
|
81
81
|
return FirebaseConfiguration.shared.baseFirestoreDocument;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
public batch(): FirestoreBatch {
|
|
85
|
+
return new FirestoreBatch(FirebaseConfiguration.shared.firebaseFirestore);
|
|
86
|
+
}
|
|
87
|
+
|
|
84
88
|
/**
|
|
85
89
|
* Gets a reference to a team document.
|
|
86
90
|
*
|
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
import { FirebaseFunctionsContext } from '@stevenkellner/firebase-function';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import {
|
|
3
|
+
// TeamNewFunction,
|
|
4
|
+
UserLoginFunction, UserRegisterFunction
|
|
5
|
+
// PaypalMeEditFunction, NotificationRegisterFunction, NotificationSubscribeFunction,
|
|
6
|
+
// InvitationInviteFunction, InvitationWithdrawFunction, InvitationGetInvitationFunction, InvitationRegisterFunction,
|
|
7
|
+
// PersonAddFunction, PersonDeleteFunction, PersonUpdateFunction, UserKickoutFunction, UserRoleEditFunction,
|
|
8
|
+
// FineTemplateAddFunction, FineTemplateDeleteFunction, FineTemplateUpdateFunction,
|
|
9
|
+
// FineAddFunction, FineDeleteFunction, FineUpdateFunction
|
|
9
10
|
} from '.';
|
|
10
11
|
|
|
11
12
|
export const firebaseFunctionsContext = FirebaseFunctionsContext.build(builder => ({
|
|
12
|
-
team: {
|
|
13
|
-
|
|
14
|
-
},
|
|
13
|
+
// team: {
|
|
14
|
+
// new: builder.function(TeamNewFunction)
|
|
15
|
+
// },
|
|
15
16
|
user: {
|
|
16
17
|
login: builder.function(UserLoginFunction),
|
|
17
18
|
register: builder.function(UserRegisterFunction)
|
|
18
|
-
},
|
|
19
|
-
paypalMe: {
|
|
20
|
-
edit: builder.function(PaypalMeEditFunction)
|
|
21
|
-
},
|
|
22
|
-
notification: {
|
|
23
|
-
register: builder.function(NotificationRegisterFunction),
|
|
24
|
-
subscribe: builder.function(NotificationSubscribeFunction)
|
|
25
|
-
},
|
|
26
|
-
invitation: {
|
|
27
|
-
invite: builder.function(InvitationInviteFunction),
|
|
28
|
-
withdraw: builder.function(InvitationWithdrawFunction),
|
|
29
|
-
getInvitation: builder.function(InvitationGetInvitationFunction),
|
|
30
|
-
register: builder.function(InvitationRegisterFunction)
|
|
31
|
-
},
|
|
32
|
-
person: {
|
|
33
|
-
add: builder.function(PersonAddFunction),
|
|
34
|
-
update: builder.function(PersonUpdateFunction),
|
|
35
|
-
delete: builder.function(PersonDeleteFunction),
|
|
36
|
-
kickout: builder.function(UserKickoutFunction),
|
|
37
|
-
roleEdit: builder.function(UserRoleEditFunction)
|
|
38
|
-
},
|
|
39
|
-
fineTemplate: {
|
|
40
|
-
add: builder.function(FineTemplateAddFunction),
|
|
41
|
-
update: builder.function(FineTemplateUpdateFunction),
|
|
42
|
-
delete: builder.function(FineTemplateDeleteFunction)
|
|
43
|
-
},
|
|
44
|
-
fine: {
|
|
45
|
-
add: builder.function(FineAddFunction),
|
|
46
|
-
update: builder.function(FineUpdateFunction),
|
|
47
|
-
delete: builder.function(FineDeleteFunction)
|
|
48
19
|
}
|
|
20
|
+
// paypalMe: {
|
|
21
|
+
// edit: builder.function(PaypalMeEditFunction)
|
|
22
|
+
// },
|
|
23
|
+
// notification: {
|
|
24
|
+
// register: builder.function(NotificationRegisterFunction),
|
|
25
|
+
// subscribe: builder.function(NotificationSubscribeFunction)
|
|
26
|
+
// },
|
|
27
|
+
// invitation: {
|
|
28
|
+
// invite: builder.function(InvitationInviteFunction),
|
|
29
|
+
// withdraw: builder.function(InvitationWithdrawFunction),
|
|
30
|
+
// getInvitation: builder.function(InvitationGetInvitationFunction),
|
|
31
|
+
// register: builder.function(InvitationRegisterFunction)
|
|
32
|
+
// },
|
|
33
|
+
// person: {
|
|
34
|
+
// add: builder.function(PersonAddFunction),
|
|
35
|
+
// update: builder.function(PersonUpdateFunction),
|
|
36
|
+
// delete: builder.function(PersonDeleteFunction),
|
|
37
|
+
// kickout: builder.function(UserKickoutFunction),
|
|
38
|
+
// roleEdit: builder.function(UserRoleEditFunction)
|
|
39
|
+
// },
|
|
40
|
+
// fineTemplate: {
|
|
41
|
+
// add: builder.function(FineTemplateAddFunction),
|
|
42
|
+
// update: builder.function(FineTemplateUpdateFunction),
|
|
43
|
+
// delete: builder.function(FineTemplateDeleteFunction)
|
|
44
|
+
// },
|
|
45
|
+
// fine: {
|
|
46
|
+
// add: builder.function(FineAddFunction),
|
|
47
|
+
// update: builder.function(FineUpdateFunction),
|
|
48
|
+
// delete: builder.function(FineDeleteFunction)
|
|
49
|
+
// }
|
|
49
50
|
}));
|